+ 1

What are the many ways of using loops in python code?

I needed to print 'We love Python turtles!' a 100 times an list all the months. code: One of the months of the year is January One of the months of the year is February ...     Use a list to print all 12 months. I just need explanations how to use loops. I researched about it but none of it made any sense. So I was hoping someone could explain to me in depth.

1st Oct 2018, 6:18 PM
Kittyky.n
Kittyky.n - avatar
6 Réponses
+ 2
Kittyky.n This is the 3rd question that you made (and i parteciped) and you ask only for a particular problem... Do you want know only loop? This is the SL python tutorial https://www.sololearn.com/Course/Python/?ref=app Follow it and you will understand all basic python
1st Oct 2018, 6:35 PM
KrOW
KrOW - avatar
+ 1
Your code?
1st Oct 2018, 6:24 PM
KrOW
KrOW - avatar
+ 1
Kittyky.n But you use SL for get your assignements made by other users?
1st Oct 2018, 6:30 PM
KrOW
KrOW - avatar
0
One of the months of the year is January One of the months of the year is February ...     Use a list to print all 12 months.
1st Oct 2018, 6:28 PM
Kittyky.n
Kittyky.n - avatar
0
for i in range(100): print("Prints 100 times!") months = [jan", "feb", "mar"] for month in months: print(month)
1st Oct 2018, 6:28 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar
0
krOW I just wanted to know how to use loops.
1st Oct 2018, 6:32 PM
Kittyky.n
Kittyky.n - avatar