Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: You are asked to write a slogan generator that creates new slogans out of NYU existing mottos slogan1 and slogan2. Your returned result should

Question: You are asked to write a slogan generator that creates new slogans out of NYU existing mottos slogan1 and slogan2. Your returned result should be: "From 'slogan1' and 'slogan2' comes 'slogan1' 'slogan2'. How does that sound?"

Note: You must use f-string to do this question.

Args: slogan1 (str), slogan2 (str) Returns: string

>>> motto_maker("Put in", "a Ramblin' Wreck") "From 'Put in' and ' a Ramblin' Wreck from NYU comes 'Put in a Ramblin' Wreck from NYU'. How does that sound?"

Please provide the Python code and the resulting output.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions