You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notruilin edited this page Mar 6, 2019
·
3 revisions
Convert int to ASCII in Python
num = ord('a')
char = chr('num')
Reverse a string (String to List to String)
"".join(reversed(word))
Change primitive type (e.g. String) variables passed into function won't change the original values.
Non-primitive (e.g. List) variables are pointers, change value of pointers will affect everywhere referenced to them