def greet():
    print('Hi\nThis is AI agent workshop')

def takeinput():
    userinput = input("what is your symptom ")
    print("Your symptom is:" + userinput)
    return userinput


def giveadvice(symptom):
    if symptom == "cough":
        print("take xyz medicine")
    elif symptom== "fever":
        print("Go to doctor")
    elif symptom== "headache":
        print("take pyq medicine")
    else:
        print('youre thinking too much!')


name = "yash"
age = 25

symptomList = [{
    "name": "cough",
    "severity": "mild",
    "duration": "2 days",
    "priority": 1
}, 
{
    "name": "fever",
    "severity": "high",
    "duration": "5 days",
    "priority": 2
}, 
{
    "name": "headache",
    "severity": "low",
    "duration": "1 day",
    "priority": 2
}]

#print(name)
#print(age)
#print(symptomList[1])

#for symptom in symptomList:
#    if(symptom["priority"]==2):
#       #print(symptom["name"])
#        #print(symptom["priority"])
#        #print(symptom["duration"])
#        #print(symptom["severity"])
#        print(symptom)

greet()
symptom = takeinput()

giveadvice(symptom)

print("thank you for using our bot")