Home › Forums › Python Functions › Lesson Review
- This topic has 8 replies, 9 voices, and was last updated 3 years, 4 months ago by
May07.
- AuthorPosts
- March 22, 2022 at 1:02 am #7435
Eamonn
KeymasterReview lesson here
March 22, 2022 at 1:42 am #7436Peam1223
Participantthe outputs are 4.67, 125, 7.0, 34, 34, 7, 6, 16, 16.
the purpose of abs is to make the number positive.
the purpose of int is to get rid of the decimals.
the purpose of pow is to times the number by itself.
the purpose of round is to turn a number with a decimal point either up or down.even numbers that truncate a 5 round down
odd numbers that truncate a 5 round upprediction
4.5
678
errorthe results
4.5
678
nothingMarch 22, 2022 at 2:19 am #7445Karan123
ParticipantToday, I had learnt that python was more than a computer language and type of code. You could do so many things with python including calculating numbers. Today’s lesson was sort of easy to replicate and answer as we just had to follow along and learn it independently. I liked how we could use python as more than a tool and have the ability to use this in our everyday lives later in the future. All in all, I had very much appreciated this lesson today and would like to learn more of what else python could do.
March 22, 2022 at 2:23 am #7446Rafael
ParticipantI learned about: program related to maths
Ceil()= round up
Floor()= round down
import random= generates random numbers
abs= absolute value
int= integerMarch 22, 2022 at 2:28 am #7447Chien493
ParticipantI learned how to do some simple calculations with python. this class is really fun. i want do more on python.
March 22, 2022 at 3:19 am #7454Fine
ParticipantI learned how python can be useful in math and what each of its functions does. Ceil() is the smallest integer>=x, Floor() is the largest integer<=x, int stands for integer, abs is an absolute value, and import random will generate random numbers. Today’s lesson was pretty fun because it’s not too complicated or simple, just right. I really like how python can be more than a computer language and do much more stuff such as math. It is amazing how it is able to print the product from the given function. Overall was good.
March 22, 2022 at 3:27 am #7455Andrew
ParticipantToday, I learned that it relates to math and it was quite interesting learning about codes I’d like to use and play with python, today’s lesson was quite easy and simple.
March 22, 2022 at 3:30 am #7456Matthew Sparrow
ParticipantToday we did a lot of things related to math. I learnt more about functions in python.
March 22, 2022 at 3:38 am #7458May07
ParticipantI learnt that python can even do mathematics calculations, which I found really cool because python can do so much more than I thought. It was easier, too. I enjoyed it and look forward to learn more.
- AuthorPosts
- You must be logged in to reply to this topic.