Hallo
I'm very new to coding, so it's is maybe a silly question
I have of piece of code, i don't understand
My code her
shouldn't it's say bob, you are okay?? because the != operator it is false, and the == "kas" is false
I'm very new to coding, so it's is maybe a silly question
I have of piece of code, i don't understand
My code her
def Halloworld(Mystring): print (Mystring) MyName = input ("what's your name?") MyVar = input ("Enter a Number") if(MyName == "kas" or MyVar != 0): print("kas is great") elif(MyName == "bob"): print("you are okay") else: print ("Hallo you") Halloworld("Hallo function world")When i run the code for eks.
Output:Hallo function world
what's your name?bob
Enter a Number1
kas is great
when i enter the name bob and the number 1, i'ts says kas is greatshouldn't it's say bob, you are okay?? because the != operator it is false, and the == "kas" is false