Section 1

Preview this deck

.isdigit()

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (37)

Section 1

(37 cards)

.isdigit()

Front

takes a single argument in the form of an integer and returns the value of type int

Back

.isalpha()

Front

Returns true (a nonzero number) if the argument is a letter of the alphabet. Returns false if the argument is not a letter.

Back

boolean

Front

A single value of either TRUE or FALSE

Back

.title()

Front

which is used to convert the first character in each word to Uppercase and remaining characters to Lowercase in string and returns new string.

Back

reserved words

Front

used to develop programming instructions

Back

run time error

Front

An error in a program that makes it impossible to run to completion. Also called an "exception".

Back

assignment

Front

used to (re)bind names to values and to modify attributes or items of mutable objects

Back

.startswith()

Front

Checks whether a string begins with specified characters

Back

.upper()

Front

converts text to all caps

Back

.swapcase()

Front

returns a new string where the case of each letter is switched

Back

.lower()

Front

Changes the string to lower case.

Back

comment

Front

little snippets of text embedded inside your code that are ignored by the Python interpreter.

Back

casting

Front

convert a variable value from one type to another

Back

nested function

Front

a function that contains another function embedded inside one or more of its arguments

Back

.islower()

Front

Returns true (a nonzero number) if the argument is a lowercase letter.

Back

float

Front

A native type representing rational numbers to limited precision.

Back

print() function

Front

A function used in a program or script that causes the Python interpreter to display a value on its output device.

Back

case sensitive

Front

When entering a password, the upper- and lowercasing of the letters must be identical to the casing of the letters in the assigned password.

Back

input() function

Front

How the viewer will enter text into the program through the keyboard

Back

.isalnum()

Front

Returns true (a nonzero number) if the argument is a digit. Otherwise it returns FALSE.

Back

.capitalize()

Front

method converts the first character of a string to capital (uppercase) letter

Back

logic error

Front

program runs but does the wrong thing

Back

syntax error

Front

An error in a program that makes it impossible to parse — and therefore impossible to interpret.

Back

type() function

Front

tells us whether the number is int or float, or string

Back

nameerror

Front

The program tries to use a variable that does not exist.

Back

data type

Front

Each object or value accessed by key and keys are unique in the dictionary.

Back

concatenation

Front

joining two strings together.

Back

integer

Front

All whole numbers (both positive and negative) and zero.

Back

.istitle()

Front

returns True if the string is a titlecased string otherwise it returns False.

Back

variable

Front

A symbol used to represent a quantity that can change

Back

string

Front

is a sequence of characters

Back

function

Front

used to utilize code in more than one place in a program

Back

typeerror

Front

An operation uses incorrect types - can occur if adding an integer to a string.

Back

print formatting

Front

formats the given string into a nicer output in Python.

Back

.isupper()

Front

Returns true (a nonzero number) if the argument is a uppercase letter.

Back

keyword

Front

used to define the syntax and structure of the Python language

Back

in

Front

The in keyword is used to check if a value is present in a sequence (list, range, string etc.).

Back