Lecture 3: Data Types, Input/Output, and Basic Functions

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core programming concepts from Lecture 3 including Python data types, type conversions, escape sequences, standard input/output, string formatting, and functions.

Last updated 2:23 PM on 9/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Variable Type

The property of a variable that dictates how the computer should interpret a specific sequence of 1s and 0s stored in memory.

2
New cards

Integer

A standard built-in data type that represents positive or negative whole numbers without a decimal point.

3
New cards

Floating-Point Number

A numerical data type representing numbers with a decimal point, modeled using a mantissa and an exponent.

4
New cards

Mantissa

The numerical portion of a floating-point number in scientific notation (e.g., 1234.567=1.234567ร—1031234.567 = 1.234567 \times 10^3) that contains the significant digits, assumed to have one digit before the decimal point.

5
New cards

Boolean

A fundamental data type that can store only one of two possible values: True or False.

6
New cards

String

A data type describing text composed of individual characters strung together and enclosed within quotation marks.

7
New cards

Escape Character

A backslash (\) placed before a character in a string to specify special interpretations, such as \n for a newline, \t for a tab, or \" for literal quotes.

8
New cards

Console

A window or screen display that shows standard output from a program and receives standard user input.

9
New cards

String Concatenation

The operation of joining two strings together end-to-end using the + operator.

10
New cards

Truncation

The operation performed when converting a floating-point number to an integer, where any fractional portion is dropped off and only the whole number remains.

11
New cards

repr() Function

A Python function alternative to str() that converts a value into a string representation displaying explicit formatting such as quotation marks and escape sequences.

12
New cards

sep Parameter

An optional parameter in Python's print() function that specifies the string inserted between multiple printed items, defaulting to a single space.

13
New cards

end Parameter

An optional parameter in Python's print() function that specifies what character or string is printed at the end of the output, defaulting to a newline.

14
New cards

f-string

A formatted string literal in Python, indicated by an f prefix, allowing variables and expressions placed inside curly braces {} to be evaluated and formatted directly within the string.

15
New cards

Format Specifiers

Alignment flags used within formatted strings to align text to the left (

16
New cards

input() Function

A built-in Python function that prompts for and reads input typed by the user from the console, always returning the data as a string.

17
New cards

Function

A named snippet of code that performs a specific task and can be executed multiple times throughout a program.