0

What is problem with this? Can anyone fix it pls

https://code.sololearn.com/c7bUD6oW0M7h/?ref=app

5th May 2022, 8:43 AM
Nibir Nath
Nibir Nath - avatar
3 Answers
+ 2
Nibir Nath There is user_message input_text not input:text Also return cannot be use without function many mistakes: #what is the use of this in code from datetime import datetime def sample_responses(input_text): user_message = str (input_text).lower() if user_message in ("hello","hi"): return "I am automac!" else: return 'I don\'t understand you !'
5th May 2022, 8:46 AM
A͢J
A͢J - avatar
+ 2
Nibir Nath What you are trying to do? Defining other variable using other variable? Don't you check what you have written?
5th May 2022, 8:49 AM
A͢J
A͢J - avatar
+ 1
There are spelling errors, return needs to be in a function, unnamed variables.
5th May 2022, 8:53 AM
Stefano De Angelis
Stefano De Angelis - avatar