Question: 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:

How to write a Silly Name program and write it in the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!