Respuesta :
In python:
import random
good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])
bad_responses = (["I'm sorry", "That sucks!"])
first_name = input("What's your first name? ")
last_name = input("What's your last name? ")
print(f"Hello {first_name} {last_name}, nice to meet you!")
age = int(input(f"How old are you, {first_name}? "))
if age > 17:
print("Wow, you're old enough to vote!")
else:
print("Quite young, aren't you.")
color = input("What's your favorite color? ")
print(good_responses[random.randint(0,3)])
feeling = input("How are you feeling? (sad/happy) ")
if feeling == 'sad':
print(bad_responses[random.randint(0,1)])
else:
print(good_responses[random.randint(0,3)])
print(f"It's been nice chatting with you, {first_name}!")
I hope this helps!
In this exercise we have to use the knowledge of computational language in python to write the code.
This code can be found in the attached image.
To make it simpler the code is described as:
import random
good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])
bad_responses = (["I'm sorry", "That sad"])
first_name = input("What's your first name? ")
last_name = input("What's your last name? ")
print("Hello {first_name} {last_name}, nice to meet you!")
age = int(input(f"How old are you, {first_name}? "))
if age > 17:
print("Wow, you're old enough to vote!")
else:
print("Quite young, aren't you.")
See more about python at brainly.com/question/22841107
