Answered step by step
Verified Expert Solution
Link Copied!

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


student submitted image, transcription available below 

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

Bonus shares can be issued out of revenue reserves. True/False?

Answered: 1 week ago