Hello,
I decided to practice python, and I tried to do these exercises. However, I can not find a correction, could anyone do it? (it's simple exercises)
6) Write expressions that reflect the following conditions (the numbers mentioned are all integers)
○The integer n is divisible by 5
○The integers m and n are such that one is multiple of the other
○The integers m and n are of the same sign
○The three integers m, n and p are of the same sign
○The three integers m, n and p are distinct two by two
○The integer n is the smallest multiple of 7 greater than 10 ^ 100
7) Write an expression to determine the last digit of 2017 ^ 207 without displaying that number in full.
8) Write expressions that reflect the following conditions (the numbers mentioned are all "float")
○ The points of coordinates (x, y) are inside the circle of center (z, t) and radius r
○ The points of coordinates (x, y) and (z, t) are located on the same line parallel to one of the axes of the marker.
○ There is a triangle whose sides measure respectively a, b and c
9) What type is suitable for representing the following data?
a) the name of a person
b ) the coordinates of a moving point in space
c) a telephone number
d) an ip address
Regards