157k views
1 vote
2) Prompt the user for his/her favorite 2-digit number, and the output is the square root of the number.

User Ngokevin
by
4.4k points

1 Answer

3 votes

num = int(input("What's your favorite 2-digit number? "))

print("The square root of {} is {}".format(num, (num**0.5)))

I hope this helps!

User Iron Pillow
by
5.0k points