0
What is problem with this? Can anyone fix it pls
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 !'
+ 2
Nibir Nath
What you are trying to do?
Defining other variable using other variable? Don't you check what you have written?
+ 1
There are spelling errors, return needs to be in a function, unnamed variables.