Show Menu
Cheatography

PYTHON CS by Bright Cheat Sheet by

Function

#
Comment, nothing happen
" "
Multi line comment
print ( )
Print an inform­ation that you want
Int ( )
Change number to be number integer
input ( )
Want the user to type something in
str ( )
Converts the value to a string
float ( )
Converts the value to a floating (Decimal number)
len ( )
Length of string
 

Vocab

String
Word, symbol
Floating
Decimal number
Integer
Number
Datetime
Date
Boolean
True/ False

Capital

Name = "­bright JIRAYU­"
print (name.u­­­­­­­­­p­­­p­­­­er())
= BRIGHT JIRAYU
print (name.l­­­­­­­­­o­­­w­­­­er())
= bright jirayu
print (name.c­­­­­­­­­a­­­p­­­­i­­­­­ta­­­­­­­li­­­ze())
= Bright jirayu
print (name.t­­­­­­­­­i­­­t­­­­le())
= Bright Jirayu

Addition

string + string
Combine together
string + number
Fail
number + number
Plus
number - number
Minus
 

Symbols

==
Equal to
!=
Not equal to
<
Less than
<=
Less than or equal to
>
Greater than
>=
Greater than or equal to
+
Add
-
Subtract
*
Multiple
/
Divide and quotient is flaot
//
Divide and quotient is integer
**
Exponent
%
Modulo and remainder
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.