Skip to content

Instantly share code, notes, and snippets.

@JonnyBanana
Created November 17, 2019 17:05
Show Gist options
  • Save JonnyBanana/2391af9ebf940a6033058cf2634d9c0a to your computer and use it in GitHub Desktop.
Save JonnyBanana/2391af9ebf940a6033058cf2634d9c0a to your computer and use it in GitHub Desktop.
# 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