Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# script by JonnyBanana
#https://github.com/JonnyBanana
# this simple script asks to assign a name to a variable
#and then asks how many variables it must print on the monitor
# the output is like:
# a1 = ''
# a2 = ''
# a3 = ''
# a4 = ''
# a5 = ''
x = ' '
print ("How do you want to call your variable?")
b = input ()
print ("Ok dude!")
print ("How many variables" + x + "'" + b + "'" + x + "should I print ???")
c = input ()
def Numeri():
contatore = 1
while contatore <= int(c):
print(b + str(contatore) + x + "=" + x + "''")
contatore = contatore + 1
Numeri()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.