0

Hey! [SOLVED]

How do I code a python interaction? Like I write input Hey wazzup and then the output says Hey imma good

29th Nov 2022, 3:39 PM
MikroMick
MikroMick - avatar
7 ответов
+ 2
user_input = input() text_template = 'Hey wazzup' if user_input == text_template: print('Hey imma good') else: print('Hello, dude!')
29th Nov 2022, 4:26 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
Yaroslav Vernigora Thanks my problem is now solved!
29th Nov 2022, 4:43 PM
MikroMick
MikroMick - avatar
+ 1
a = input("Enter the greetings: ") if("hey whatzzup" in a): print("Hey imma good") else: print("fine bro")
29th Nov 2022, 5:00 PM
Anonymous
Anonymous - avatar
+ 1
MikroMick you should thank him too. he tried hard for you 😉
29th Nov 2022, 7:55 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
29th Nov 2022, 8:12 PM
MikroMick
MikroMick - avatar
+ 1
Thanks Anonymous You did it great.
29th Nov 2022, 8:13 PM
MikroMick
MikroMick - avatar
0
Sorry Anonymous the problem is already solved (with one answer!)
29th Nov 2022, 5:02 PM
MikroMick
MikroMick - avatar