Jump to content

10 posts in this topic

Recommended Posts

Posted (edited)

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)

4ya5.png

 

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

Updated by RLern
Posted (edited)
16 minutes ago, Loading.. said:

Not that good in French 

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

Updated by RLern
Posted
1 minute ago, Loading.. said:

I'm not that good in Python myself xD

I wanna know the answers too now lol

Ahah  xD I hope someone could give me a correction, but I do not know who to contact who knows python well x)

Posted
Just now, RLern said:

Ahah  xD I hope someone could give me a correction, but I do not know who to contact who knows python well x)

I'm sure many people here know Python. If one of them see this topic they will tell you the answers.

Posted (edited)
2 minutes ago, Loading.. said:

I'm sure many people here know Python. If one of them see this topic they will tell you the answers.

Okay thanks, so I just have to be patient :D

Updated by RLern

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines