Podcast
Questions and Answers
are made up of whole numbers, their negative counter parts and zero.
are made up of whole numbers, their negative counter parts and zero.
Integers
are numerical values that has decimal point.
are numerical values that has decimal point.
float
are used in tasks ranging from simple daily counting to advance science and business calculations. Python follows PEMDAS precedence
are used in tasks ranging from simple daily counting to advance science and business calculations. Python follows PEMDAS precedence
Arithmetic Operators
Addition sign
Addition sign
Multiplication sign
Multiplication sign
floor division
floor division
exponent
exponent
remainder
remainder
also called python relational operator, compares the values of two operands and returns True or False based on whether the condition is met.
also called python relational operator, compares the values of two operands and returns True or False based on whether the condition is met.
less than
less than
greater than
greater than
less than or equal to
less than or equal to
greater than or equal to
greater than or equal to
equal to
equal to
not equal to
not equal to
begins and ends with either three single quotes or three double quotes. Any quotes, tabs, or newlines in between the “triple quotes” are considered part of the string.
begins and ends with either three single quotes or three double quotes. Any quotes, tabs, or newlines in between the “triple quotes” are considered part of the string.
allow you to include special characters in strings. To do this, simply add a backslash () before the character you want to escape.
allow you to include special characters in strings. To do this, simply add a backslash () before the character you want to escape.
means to combine or join two or strings together using the addition sign (+). Since Python does not add a space when concatenating, you have to manually add the space manually.
means to combine or join two or strings together using the addition sign (+). Since Python does not add a space when concatenating, you have to manually add the space manually.
is used to get a specific character within a string-valued variable. Python offsets start at 0 and end at one less than the length of the string
is used to get a specific character within a string-valued variable. Python offsets start at 0 and end at one less than the length of the string
u can also get a certain amount of strings using
u can also get a certain amount of strings using
Python has built in function that can count the numbers of characters and returns an integer result. You can get the length of a string using the
Python has built in function that can count the numbers of characters and returns an integer result. You can get the length of a string using the
are use to clean up or remove the extra or unnecessary whitespace characters. Whitespace characters are referred to extra spaces in an object.
are use to clean up or remove the extra or unnecessary whitespace characters. Whitespace characters are referred to extra spaces in an object.
removes spaces on both sides
removes spaces on both sides
removes space on the left side
removes space on the left side
removes space on the right side
removes space on the right side
is used to create a list out of a string value. It helps if there is something in the string that can be separated. takes on the argument as a separator and not directly to the string itself.
is used to create a list out of a string value. It helps if there is something in the string that can be separated. takes on the argument as a separator and not directly to the string itself.
is used to combine list items to form a string value- object.
is used to combine list items to form a string value- object.
is used to take on three arguments:
the string you want to replace, the string you want to replace it with, and the number of times the replacement would occur
is used to take on three arguments: the string you want to replace, the string you want to replace it with, and the number of times the replacement would occur
are used to change the case of the characters of the string using the following:
are used to change the case of the characters of the string using the following:
it is the value that are enclosed inside the parenthesis when a function is used.
A parameter is the variable listed inside the parentheses in the function definition.
it is the value that are enclosed inside the parenthesis when a function is used.
A parameter is the variable listed inside the parentheses in the function definition.