what is wrong with this line of code in Python 3

+1 vote
asked Jun 9 by Mike Roe (130 points)
while loop ==1:

After the line is a print code and it crashes with error in above line

2 Answers

0 votes
answered Jun 9 by Admin (4,340 points)
This is just a while loop condition, shouldn't be point of crash.
But must be some other line of code which is crashing.
Can you share some more lines around while loop and if possible share crash message as well.
0 votes
answered Jun 9 by Peter Minarik (7,830 points)
It's a good idea to share the error code and message provided by the Python interpreter.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.