GirlName = “Victoria”
if dbName != “Emery”:
break #<=== Here, I want to (**Press any key to continue…**In Console) Escape from if statement?? Here, Escape the code below from being executed…Press any key to continue…
This way, the code appears as it does on your console giving you the opportunity to verify and double check that it has been entered correctly (tabs are where they should be, for example, since Python is a very tab-centric language).
Please copy your ENTIRE code as per the instructions - not bits and pieces. Make sure that it appears as it does on your console.
fyi …, a case statement might also work for this application:
name = input('Please enter a name: ')
match name:
case 'Emery':
print('Emery is the correct name.')
case 'Andrew':
print('Andrew name was entered.')
case 'Noah':
print('Noah name was entered.')
case _:
print("Not a valid name!")
print('\nSuccessfully processed names!')