Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is wrong with this line of code in Python 3

+1 vote
asked Jun 9, 2020 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, 2020 by Admin (5,100 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, 2020 by Peter Minarik (86,200 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.
...