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
Signup and view all the answers
Multiplication sign
Multiplication sign
Signup and view all the answers
floor division
floor division
Signup and view all the answers
exponent
exponent
Signup and view all the answers
remainder
remainder
Signup and view all the answers
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.
Signup and view all the answers
less than
less than
Signup and view all the answers
greater than
greater than
Signup and view all the answers
less than or equal to
less than or equal to
Signup and view all the answers
greater than or equal to
greater than or equal to
Signup and view all the answers
equal to
equal to
Signup and view all the answers
not equal to
not equal to
Signup and view all the answers
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.
Signup and view all the answers
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.
Signup and view all the answers
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.
Signup and view all the answers
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
Signup and view all the answers
u can also get a certain amount of strings using
u can also get a certain amount of strings using
Signup and view all the answers
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
Signup and view all the answers
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.
Signup and view all the answers
removes spaces on both sides
removes spaces on both sides
Signup and view all the answers
removes space on the left side
removes space on the left side
Signup and view all the answers
removes space on the right side
removes space on the right side
Signup and view all the answers
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.
Signup and view all the answers
is used to combine list items to form a string value- object.
is used to combine list items to form a string value- object.
Signup and view all the answers
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
Signup and view all the answers
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:
Signup and view all the answers
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.
Signup and view all the answers