True / false statement. This is with Python. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

True / false statement. This is with Python.

So If i do this print ("hello") == ("hello") It's a true / false statement, how would i do an if statement for thst being true? Like print ("hello") == ("hello") If true or what ever print ("bla bla bla")

14th Aug 2019, 5:35 PM
Astral
1 Answer
+ 4
if 'hello' == 'hello': print('bla bla bla')
14th Aug 2019, 5:40 PM
HonFu
HonFu - avatar