Комментарии:
helpful for me as a young 10 year old coder :>
ОтветитьSo python is just simple like php
ОтветитьDid I misundertand? Your first "fix" was just the original code. What am I missing here?
ОтветитьWhy 'Tom' is true?
Ответитьif name == 'Bob' or name == 'Tom' or name == 'Mike'
This might work
Nice
ОтветитьYou can use the normal brackets in this case, like == ( A or B or C) right?
ОтветитьSo basically like php
ОтветитьBrackets
ОтветитьCould someone explain this please? All statements are false, so why would it print access granted?
ОтветитьHow about
If name == (“rob” or “mike” or “john”)
// rest of python code
I had to learn this the really hard way
ОтветитьIt's not work like our brain think you can do
If name == shalom or poopi
You need or you can
If name == shalom or name == poopi
Currently learning Python and I came across this problem. Took me a good amount of time to figure out
ОтветитьAccess denied
ОтветитьI did not use python before but when I was reading the code when I came to "or" word I had an error in my head and asked myself, does python use "or" like this!! it is weird !!😅 , But yeah it does not
ОтветитьJust add brackets for the if function?
ОтветитьUsing a set would be eveny better
ОтветитьIs this Vscode ?
ОтветитьFking THANK YOU! Just getting started with Python and programming and this was driving me nuts. Here, have a cookie.
Ответить