codingtumblog
codingtumblog
CodingTumblog
6 posts
CODING. . .
Don't wanna be here? Send us removal request.
codingtumblog · 5 years ago
Text
Python Notes - Editing Strings
These methods can be added directly to the end of a variable name.
.rstrip() = removes any spaces from the RIGHT of the variable
.lstrip() = removes any spaces from the LEFT of the variable
.strip() = removes spaces from the RIGHT and LEFT of the variable
.upper() = makes all text uppercase
.lower() = makes all text lowercase
.title() = capitalizes the first letter of each word (as in with a person’s name)
0 notes
codingtumblog · 5 years ago
Text
Python Notes - Mathematical Operations
These are pretty intuitive and easy to grasp.
+ = addition
- = subtraction
* = multiplication
/ = division
** = exponent
// = floor division
% = divides the numbers as with “/” but returns the remainder
There’s a math module that allows more complex mathematical functions, but we’ll cover that later.
6 notes · View notes
codingtumblog · 5 years ago
Text
Python Notes - Common Whitespace Characters
These a small handful of characters that are used in strings to edit the way the output is displayed.
\\ = produces a backslash (\)
\' = produces a single quote (')
\" = produces a double quote (")
\n = creates a new line
\t = tab / horizontal space
By no means a comprehensive list, but these are some common ones.
1 note · View note
codingtumblog · 5 years ago
Video
youtube
Coding to lofi hip hop is where it’s at. 
0 notes
codingtumblog · 9 years ago
Photo
Tumblr media
Wonder Woman explains computers to kids.
122 notes · View notes
codingtumblog · 9 years ago
Photo
Tumblr media
439 notes · View notes