Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve in Python 43 PROBLEM 1: Building a New Game Function Name: buildGame() Parameters: gamel - a str game2-a str Return Value: str Description: It's
Solve in Python
43 PROBLEM 1: Building a New Game Function Name: buildGame() Parameters: gamel - a str game2-a str Return Value: str Description: It's game night in your hall! Everyone is asked to bring a game to play together. You are tired of playing the same games over and over, so you decide it's time to come up with a new game! Write a function that takes in two game names and then combines the first 6 letters of each together to create and return a completely crazy game name, i.e. the first letter of game1 will be the first letter of the new string, the first letter of game2 will be the second letter of the new string, etc. If one or both game names are shorter than 6 letters, return a message saying the names are too short to combine instead. Note: You must use a for loop for this problem! Using slicing will result in NO credit. Test Cases: >>> print (buildGame ("Monopoly", "Operation")) MOopneorpaot. What a great new name! >>> print (buildGame ("UNO", "Chess")) These game names are way too short. Only long and complicated names for me!
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