0

How to print name infinity times in python?

4th Nov 2023, 5:47 AM
Thushar Cherian
Thushar Cherian - avatar
8 odpowiedzi
+ 7
The easiest way to create an infinite loop is using a while statement where the condition is never evaluated to False. while True: # your code
4th Nov 2023, 8:57 AM
Tibor Santa
Tibor Santa - avatar
+ 3
Without knowing how far you are in a course, I don’t know what kind of hints to give you. If possible, would you show your code attempt?
4th Nov 2023, 8:43 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 2
♾️ loop 🤔
4th Nov 2023, 9:01 AM
Mafdi
Mafdi - avatar
+ 2
x = True; while x: # whatever you wants to loop forever
6th Nov 2023, 5:36 AM
Alhaaz
Alhaaz - avatar
0
Just add while True condition 🙂
4th Nov 2023, 9:59 AM
Dipesh K Fuse
Dipesh K Fuse - avatar
0
while True: print("name") Baba Not Group Is Group You
4th Nov 2023, 6:05 PM
Annihilate
Annihilate - avatar
0
Got it... Thank you guys
5th Nov 2023, 5:11 AM
Thushar Cherian
Thushar Cherian - avatar
0
name = "Max" #replace Max with any name you want while name == "Max": print(name) #this is written in Python
5th Nov 2023, 9:00 AM
яуоiснi ᵍʳᵉʸ
яуоiснi ᵍʳᵉʸ - avatar