Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Created February 4, 2016 03:36
Show Gist options
  • Select an option

  • Save d30jeff/725343fcf0784bf58607 to your computer and use it in GitHub Desktop.

Select an option

Save d30jeff/725343fcf0784bf58607 to your computer and use it in GitHub Desktop.
Cider
task_num = 1
def questions():
print ("Please select symbol")
symbol = input()
print ("'{}' has been selected as the symbol.".format(symbol))
print ("Please specify the height")
height = input()
for x in range(0, int(height)):
print( str(symbol) * int(7))
print("Do you wish to continue? Y/N")
return input()
while True:
x = questions()
if x.upper() == "N":
print("Task completed: {}".format(task_num))
break
task_num += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment