Python raw input with loop of counting -


i'd output raw_input looping including numbers have been given.

amount = int(raw_input("enter number? ")) item in range(amount):     input = raw_input("#"), amount 

actual output:

enter number? 2 #  # 

goal:

enter number? 2 #1 #2 

is possible?


edit: wauw, i'm getting lot of responses quickly. thank effort.

this should produce result show goal...

amount = int(raw_input('enter number? ')) item in range(1, amount + 1):     print('#' + str(item)) 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -