Create a new function in your main.py file which does three things: Asks the user for their name, and prints the name to the screen Asks the user for a number, then multiply that number by itself, and...

1 answer below »


  • Create a new function in your main.py file which does three things:


    • Asks the user for their name, and prints the name to the screen

    • Asks the user for a number, then multiply that number by itself, and print the results to the screen

    • Asks the user for any word, counts how many letters are in that word, and prints the result to the screen


Answered Same DaySep 16, 2021

Answer To: Create a new function in your main.py file which does three things: Asks the user for their name,...

Arun Shankar answered on Sep 17 2021
157 Votes
def fun():
name = input("Enter your name: ")
print(name)
num = int(input("Enter a number: "
))
print(str(num * num))
word = input("Enter a word: ")
print(str(len(word)))
fun()
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here