Using this Pseudocode:
1. Declare Number As Float
2. Declare Root As Float
3. Declare Response As Character
4. Write Do you want to find the square root of a number?
5. Write Enter ‘y’ for yes, ‘n’ for no:
What I have coded:
Response = str(input('Do you want to find the square root of a number? \
Enter y for yes, n for no: '))
Output in PyCharm Run Window:
Do you want to find the square root of a number? Enter y for yes, n for no:
Format Result wanted:
Do you want to find the square root of a number?
Enter y for yes, n for no: