Sie sind auf Seite 1von 4

Academic Year 2020-2021 Semester 1

Course with code COMP 241 Artificial Intelligence Section


Type of
Assignment-1 Marks 5 marks
Assignment
Date of
Deadline
Announcement

-Write a python program to implement simple Chatbot? 1

"For "Simple Question and Answering Program

For a Job interview conversation, where the number of


.questions is not less than 10

.ANSWER

Code:

print("Tell me about yourself?")


print("For what reason would you like to work here? ")
print("What are your weaknesses ?")
print("Describe yourself with few words ?")
print("Why should I hire you?")
print("What are your Salary Exceptions ?")
print("What are your goals?")
print("What do you know about us?")
print("What can you do for our company that other
candidates can’t?")
print("What challenges are you looking for in this
position?")
print("Quit")

while True:
question = input("Enter one question from above
list:")
question = question.lower()
if question in ['tell me about yourself?']:
print("I started my career in sales management,
but a few years ago I was attracted by the healthcare
field and I enjoyed very much that part of my work
and would like to present the experience gained in
addition to my commitment to improving the
efficiency of work in your area.")

elif question in ['for what reason would you like to


work here?']:
print("Self-development, and searching for the
best to increase the balance of my practical
experiences and my professional career ")

elif question in ['what are your weaknesses?']:


print("What interests me the most about this job is
the opportunity that I will have to meet and talk to
customers about their experience with the company's
products.")

elif question in ['describe yourself with few


words ?']:
print("Served, sociable, and friendly")

elif question in ['why should I hire you?']:


print("I know you have a big decision to make, and
I imagine that it is not easy to decide who you will
choose to employ, and through our conversation
today I hope that I will be able to convey my
understanding of the nature of work.")

elif question in ['what are your Salary Exceptions ?']:


print("I did not think much about a specific
number, but in any case you will not exceed the
prevailing rate, which you certainly have more details
than me")
elif question in ['what are your goals?']:
print("I see myself as a prominent employee of an
established organization. I plan to enhance my skills
and continue to communicate with relevant
professional correspondence")
elif question in ['what do you know about us?']:
print("know you’re one of the biggest providers of
payroll software, and you were founded in 2012 when
your CEO realized many small businesses spend far
more than they should on payroll, which hurts their
growth.")
elif question in ['what can you do for our company
that other candidates can’t?']:
print("I am an ambitious person and I will not
hesitate to make any effort with what I got from the
experiences of my previous professional years, when
the name of the company grows and rises; It means
my rise with it")

elif question in ['what challenges are you looking for


in this position?']:
print("I dive right in so the job is done with time to
spare to polish the project.” This answer
demonstrates your organizational and time
management skills.")

elif question in ['quit']:


break
else:
print("I don't understand what you said")
question = input("Enter one question from above
list:")
question = question.lower()
:Output

Das könnte Ihnen auch gefallen