Phyton Flashcards

(6 cards)

1
Q

Boolean

A

A data type that represents one of two values: True or False.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Casting

A

The process of converting one data type to another. Example: input (“Enter a number”))
converts a string to an integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Function

A

A pre-made block of code designed to perform a specific task. Examples include print () and
input ()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Input Function

A

A function that prompts the user to enter data, which is then stored as a string. Example:
input (“What is your name?”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Print Function

A

A function used to display output on the screen. Example: print (“Hello World”). Also known
as print statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Syntax error

A

An error caused by breaking the rules of the programming language, such as incorrect
punctuation or spacing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly