Please how can i make while loop print up to five times | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please how can i make while loop print up to five times

Python

29th Jun 2020, 10:47 AM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar
6 Answers
29th Jun 2020, 10:53 AM
Alexander Thiem
Alexander Thiem - avatar
+ 2
# Here's your code i=0 while i<=4: i=i+1 print("Hello world") #prints Hello world five times
29th Jun 2020, 11:15 AM
Arctic Fox
Arctic Fox - avatar
+ 1
Thank
29th Jun 2020, 11:00 AM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar
+ 1
Please i am just beginner and I am learning Python can u be my friend
29th Jun 2020, 11:16 AM
Obichukwu Ezimoha
Obichukwu Ezimoha - avatar
0
You are welcome
29th Jun 2020, 11:10 AM
Alexander Thiem
Alexander Thiem - avatar
0
Of course everyone can be your friend😂 But if this question is solved for you add a solved tag or add [solved] to the description] otherwise there will be many people who answer this already solved question.
29th Jun 2020, 11:18 AM
Alexander Thiem
Alexander Thiem - avatar