564 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Python (34 exercises) |
Topic ==> | Ranges and loops (5 exercises) |
Level ==> | Average difficulty |
Subject ==> | Python training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
To do this exercise, you'll need to know that you can use the Python sqrt function like this:
# get access to the maths functions
import math
# for example, this would show 4.0
print(math.sqrt(16))
Create a new program called Square roots.py. Within this create a loop from 1 to 100 and print out the results so that they're neatly formatted:
Half-way there! Now to show the square roots,
Now change your program so that it shows the square roots for each integer too:
The first few of the 100 lines of output from your program.
When you're happy your program works, save it (if necessary) and close it down.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2023. All Rights Reserved.