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!!!

27th Sep 2017, 12:19 PM
Max Roche
Max Roche - avatar
6 Respostas
- 1
Show us your code please.
27th Sep 2017, 12:23 PM
Jonas Schröter
Jonas Schröter - avatar
- 1
def count(): for i in range(1,11): print(i) this is what i wrote in
27th Sep 2017, 12:26 PM
Max Roche
Max Roche - avatar
- 1
This works.
27th Sep 2017, 12:28 PM
Jonas Schröter
Jonas Schröter - avatar
27th Sep 2017, 12:29 PM
Jonas Schröter
Jonas Schröter - avatar
- 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 ;)
27th Sep 2017, 12:33 PM
Max Roche
Max Roche - avatar
- 1
Alright 😊
27th Sep 2017, 12:34 PM
Jonas Schröter
Jonas Schröter - avatar