Q&A Discussies
Как добавить несколько переменных?
0 Stemmen
1 AntwoordHow can I make a reference for a list of variables. If false i want the system to check through all my variable to make sure they are false.
Code-
var2 = "Tanner"
var3 = "Jake"
question = input('What is your name? ')
if question == var2:
print('\nWelcome Back Tanner!')
if question == var3:
print('\nWelcome Back Jake!")
if question !=( This is where i need help!)( Is the != the correct way to write not equal?)
0 Stemmen
4 AntwoordenIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Stem
3 AntwoordenPopulair vandaag
Decorators in python.
2 Votes
Need help
1 Votes
Pointers in c#
1 Votes
How to install Bcrypt here
1 Votes
Please click me
0 Votes
Hello !
0 Votes
Help
1 Votes