Wednesday, December 30, 2015

Day three Section 2

# this is a comment


Functions are like mini programs ... input() for example is a function, functions have arugments that is the () this is a function because python doesnt do the memory management... that is all handled by the language, python is written in C so  C is what does the memory management and python just knows input()

I can write my own functions.

int(), str(),float() convert values' data type


Flow control statements.




Boolean values - True, False need to be capitalized.


comparison vales
Operator Meaning
== Equal to NOT = which is assignment dont get these confused
!= Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Great than or equal to


Int == str
False

Truthy Falsey
bool()




Boolean operators

and
or
not


Flow control statements
If, Else and Elif statements







No comments:

Post a Comment