Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to write a Silly Name program and write it in the Python programming language. Modify the provided code to produce the following output: Existing

How to write a Silly Name program and write it in the Python programming language. Modify the provided code to produce the following output:

image text in transcribed

Existing Ruby Code is below:

def main():

name = input("What is you name? ")

if (name == "Ted") or (name == "Fred"):

print(name + " is an awesome name!")

else:

print(f"{name} is a ", end=' ')

print("silly ", end=' ')

print_silly_name(name)

print("name!")

if __name__ == '__main__':

main()

192-168-1-101:PythonCode mmitchell\$ python3 silly-name.py What is your name? jock jock is a silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly sil ly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly silly sil ly silly name! 192-168-1-101:PythonCode mmitchell\$

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

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

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

ISBN: 1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Does SDLC stand for in the context of software development

Answered: 1 week ago

Question

How autonomous should the target be left after the merger deal?

Answered: 1 week ago