Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
pp/pp10
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (31 sloc)
1.72 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__=__"main__" | |
Print_hi("chatbot)" | |
def isgreeting(userInput):) | |
"""Returns indicating if user input was greeting""" | |
greetings+("hello,Hey)") | |
for word in greeting | |
if word in userinput: | |
reture true | |
return false | |
def respond(): | |
"""print a response to user greeting""" | |
responses =["hello,hey"] | |
out = randomchoice(responses) | |
print(out) | |
def Home Remedies(): #This function will provide natural remedies | |
print("""massaging with essential oil.this therapy for reducing mentral pains involves | |
pressing specific points while the therapist hands moves around your abdomen, | |
side and back. Another really important therapy is masturbating during period | |
the feel good chemicals known as endorphins which are released when orgasm | |
may help relieve stress,mentrual pain,and cramps"). | |
"NSAIDs are the primary over-the-counter form of pain relief recommended for | |
mentrual pain and heavy mentrual bleeding.NSAIDs includes ibuprofen and | |
naproxen. the mentioned NSAIDs help the lower body production of the | |
prostaglandin.NSAIDs are not as effective as oral contraception,but | |
they can help reduce pain. | |
def medicine(): #This function will provide all the neccessary medicines for any mentral problems | |
Print (" Apple cider 400mg 90 capsules,Evening primrose oil,Absolute collagen, | |
Ladies mantle complex,Microbiome mood+shelf 60 capsules,Paracetamol 500mg, | |
Migraitan 50mg,Magnesiunm-ok 90 tablets".) | |
else: | |
print(" have a good day.") | |