- 1
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")
1 Odpowiedź
+ 2
If you need some advanced string checks, use Regular Expression (re), but some simple string checks can be done with basic string methods.