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

html - How to custom Bootstrap grid height? -

javascript - Understanding ExtJS Framework Syntax -

javascript - pass values from mssql to views in node -