python - Why is this code not working -


what trying user input name , have program take name , test "if" statements

name = input("enter name here: ") if name "bill":   print("hello" + name) else:   print("hello") 

whenever input bill name says program on without printing second command.

try if name == "bill": rather is.

it understanding is compares identity rather value equality.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -