0
Need help with using the count function
So I'm new to programming, and as part of my course in python at uni, I need to use the count function to count from 1 - 10. I have tried different ways but I feel that I'm just new to it so I don't quite understand it yet. I only ever seem to get numbers 1 - 9 but not 10. Please help me!!!
6 Answers
- 1
Show us your code please.
- 1
def count():
for i in range(1,11):
print(i)
this is what i wrote in
- 1
This works.
- 1
I just put your code in:
https://code.sololearn.com/cv7ly2MII5Fl/?ref=app
- 1
Oh, not sure why it isn't shown as correct then because i just copied the code directly from my editor program. Thanks for the consulting ;)
- 1
Alright đ