Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 211 Bytes

24. Unit 2 - Lesson 11.md

File metadata and controls

12 lines (12 loc) · 211 Bytes

Mathematical Functions

Q1.

import math
num = float(input("num: "))
if num - int(num) >=0.5:
	print ("result:",math.ceil(num))
else:
	print("result:",math.trunc(num))

Random Number Functions

Q1. 1