May i ask how i can use while true / while loop to write the code.
i = "APPLE"
while True:
if i == "APPLE":
print(i)
i get Syntax Error form above code.
i = "APPLE"
while True:
if i == "APPLE":
print(i)
i get Syntax Error form above code.
How to use while true/while loop on python
|
|
Messages In This Thread |
How to use while true/while loop on python - by christing - Oct-07-2019, 10:11 AM
RE: How to use while true/while loop on python - by SheeppOSU - Oct-07-2019, 01:10 PM
RE: How to use while true/while loop on python - by perfringo - Oct-07-2019, 01:45 PM
RE: How to use while true/while loop on python - by christing - Oct-08-2019, 01:25 AM
RE: How to use while true/while loop on python - by perfringo - Oct-08-2019, 08:02 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
While True loop help | Nickd12 | 2 | 2,007 |
Oct-17-2020, 08:12 AM Last Post: Nickd12 |
|
Is using while True loop good? | escape_freedom13 | 5 | 3,591 |
Jul-03-2020, 08:27 PM Last Post: escape_freedom13 |
|
Do break operators turn while loop conditions from True to False? | Drone4four | 5 | 3,018 |
Oct-24-2019, 07:11 PM Last Post: newbieAuggie2019 |
|
Returning True or False vs. True or None | trevorkavanaugh | 6 | 9,315 |
Apr-04-2019, 08:42 AM Last Post: DeaD_EyE |
|
file.write stops while true loop from executing in python3 | boonr | 3 | 3,140 |
Mar-25-2019, 12:50 PM Last Post: ichabod801 |
|
How to make loop go back to the beginning if test evaluaes to True. | FWendeburg | 1 | 2,854 |
Feb-13-2019, 01:26 AM Last Post: stullis |
|
Returning true or false in a for loop | bbop1232012 | 3 | 8,204 |
Nov-22-2018, 04:44 PM Last Post: bbop1232012 |
|
Get True of false outside a loop | morgandebray | 2 | 2,478 |
Aug-09-2018, 12:39 PM Last Post: morgandebray |