Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to write these basic codes? Can I get an -answer? This activity requires you to write two short programs as described below: 1. common
How to write these basic codes? Can I get an -answer?
This activity requires you to write two short programs as described below: 1. common letters,py_ Write a program that prompts the user two string inputs and store them in two variables, word1 and word2. The program should then print the letters the two words have in common onto the screen. Hint: The intersection of two sets contain elements that are common to both 2. average age py. Write a program that prompts the user 5 times for input. Each time, the user provides a first name, last name and age. The program should print the full name and age on the screen before prompting the user for the next input. The program then calculates the average age, converting it to an integer before printing it on the screen. Hint: You can maintain a running sum of ages as you process each input, and then once all inputs have been processed, divide that by 5 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started