Interaction entails the spontaneous, synchronous, and purpos…
Questions
Interаctiоn entаils the spоntаneоus, synchronous, and purposeful exchange of meaning.
# 1.Write а Pythоn snippet thаt prоmpts the user tо enter а greeting.# If the user enters "Hello", output "Hi there!".# if the user enters "Goodbye", output "See you later!".# For any other input, output "I don't understand.".# 2. Write a Python snippet that asks the user to choose between "Breakfast", "Lunch", or "Dinner".#If the user enters an invalid choice, output "Invalid entry." and do nothing else.#If the user enters a valid choice, ask them to enter a drink: "Coffee", "Juice", or "Water".#If the drink is valid, output a response based on their meal and drink combination:#"Breakfast with Coffee is a great start!"#"Lunch with Juice is refreshing!"#"Dinner with Water is a healthy choice!"#If an invalid drink is entered, output "Invalid drink choice.".#Sample Runs:# Valid Input:# Enter a meal: Lunch# Enter a drink: Juice# Lunch with Juice is refreshing!## Invalid Meal:# Enter a meal: Snack## Invalid entry.# Valid Meal but Invalid Drink:# Enter a meal: Dinner# Enter a drink: Soda# Invalid drink choice.# 3. Understanding Boolean Logic# For the following code, what is the value of the variable condition# condition = (50 < 40) or (75 == 75) and (200 > 300)