You are on page 1of 1

Announcement: "in last Tuesday's sessions, following…"

Badar Sami
Created Jul 2Jul 2
in last Tuesday's sessions, following topics were covered. Please mention (IN
COMMENTS OF THIS POST) if anything was left in your session.

LAST SESSION
IDLE
Python shell v/s python program
variables, datatypes, assigning values/expression
input
converting input string to int/float/eval
print
math module --> import math

SAME IN BOTH
pseudocode = Python
sin(radians)=math.sin(x)
cos = cos
tan = tan
arcsin = asin
arcos = acos
arctan = atan
sqrt = sqrt
log10 = log10
ln (base e) = log
pow = pow (base, exponent)
exp = exp

NEW IN PYTHON
= log2
= log(value ,math.e)
= log(value, 10)
= log (value, 2)
= degrees
= radians
= ceiling
= floor
= factorial
= pow
= pi
= e

if condition:
if condition: else:
nested if blocks

You might also like