0

How to check strings with if else ?

friend = "Maung Maung" if friend == "MaungMaung": print("Welcome Sir From My VIP Room") else: print("Welcome Sir From My Coffee Shop")

11th Feb 2019, 1:35 PM
Phyoe Min Thant
Phyoe Min Thant - avatar
1 Odpowiedź
+ 4
The keyword is elif if a == 1: print("One") elif a == 2: print("Two") else: print("Something else")
13th Feb 2019, 6:26 AM
Tibor Santa
Tibor Santa - avatar