Skip to content

Instantly share code, notes, and snippets.

@JonnyBanana
Created November 17, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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