Skip to content

Commit

Permalink
Fix code style issues with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Feb 10, 2024
1 parent 3864270 commit 41490e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/Coin Flip/coinflip.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def toss_coin():

def main():
while True:
flag = False # Declaring a variable which will be used afterwards to break out of 2 nested while loops
flag = False # Declaring a variable which will be used afterwards to break out of 2 nested while loops
# at the same time
# Clears the shell/terminal (where all the text is)
os.system("cls")
Expand Down Expand Up @@ -38,11 +38,11 @@ def main():
flag = True
break
elif answer_y.lower() == "yes":
break # if answer_y is "yes" then break out of only the innermost while loop and start the game again
break # if answer_y is "yes" then break out of only the innermost while loop and start the game again
else:
continue
if flag: # Checking if the flag variable is True

if flag: # Checking if the flag variable is True
break


Expand Down

0 comments on commit 41490e7

Please sign in to comment.