User:Kittly2008: Difference between revisions

The most up-to-date image and information guide on Webkinz Classic items, events, and more!
Content added Content deleted
mNo edit summary
m (Instructions on how to use)
Line 6: Line 6:


Here is a Python Script to convert lists of items into WPG format. You can type whatever you find and need!
Here is a Python Script to convert lists of items into WPG format. You can type whatever you find and need!
[https://trinket.io/embed/python/a1c561b30c Try the script here.]
[https://trinket.io/python/6cedd34c83 Try the script here.]
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
# 17 November 2021
# kittly2008 #
list_original=[]
list_original=[]
x = []
x = []
while x != "stop":
while x != "stop":
x = input('Enter a Webkinz Item Name : ')
x = input('Enter a Webkinz Item Name : ')
if x == "stop":
break
list_original.append(x)
list_original.append(x)
list_original.sort()
list_original.sort()
Line 20: Line 24:
print("|{{!}}[[File:"+list_lower[i]+".png]]<br>"+list_original[i])
print("|{{!}}[[File:"+list_lower[i]+".png]]<br>"+list_original[i])
</syntaxhighlight>
</syntaxhighlight>

Steps:
* on the right, click on the text to start typing.
* enter one item, then hit enter.
* Type "stop" when you are done.
* enjoy the sorted script!





Revision as of 07:58, 18 November 2021

Hi! I'm kittly2008 on WW and kittyloveyou2008 on Instagram.

  • My wishlist/trade list is at Wishlist/Tradelist .
  • I designed the Halloween Ball Theme. Have a good one!


Here is a Python Script to convert lists of items into WPG format. You can type whatever you find and need! Try the script here.

# 17 November 2021
# kittly2008 #
list_original=[]
x = []
while x != "stop":
  x = input('Enter a Webkinz Item Name : ')
  if x == "stop":
    break 
  list_original.append(x)
list_original.sort()
list_lower=[x.lower() for x in list_original]
list_lower=[x.replace(" ", "") for x in list_lower]
empty_list=[]
for i in range(len(list_original)):
 print("|{{!}}[[File:"+list_lower[i]+".png]]<br>"+list_original[i])

Steps:

  • on the right, click on the text to start typing.
  • enter one item, then hit enter.
  • Type "stop" when you are done.
  • enjoy the sorted script!


To-do list: