Soulfulant12 Gaming Soulfulant12 Gaming -4 years ago 57
Python Question

How to Count to a specific number starting from 1 in Python

i've been struggling to do this simple task and it may seem embarrising to some of you guys who are better than me but keep in mind I am new to this prospect of coding

Please paste the code and thank you if you even try

Answer Source

This should do it for you. If not, provide what exactly you're looking for.

num = int(input("Enter the last number you want to count till: "))
for count in range(1,num+1):
    print(count)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download