Answered step by step
Verified Expert Solution
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:
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
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