Python 1

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

1/16

flashcard set

Earn XP

17 Terms

1
New cards

What is input in Python?

Information that a person gives to a program

2
New cards

What is a simple example of input?

Typing your name when a program asks for it.


3
New cards

What does input() do?

It asks for information and waits for you to type

4
New cards

What is a variable?


A named place that stores information.

5
New cards

What is a variable like?


A labelled box that holds something

6
New cards

What is a value?


The actual information stored in a variable

7
New cards

In name = "Alex", what is the variable?


name

8
New cards

In name = "Alex", what is the value?

“Alex”

9
New cards

In age = 5, what is the variable?

age

10
New cards

In age = 5, what is the value?

5

11
New cards

Why do programs use variables?


To remember information and use it later

12
New cards

What does the = sign do in an assignment?

It stores the value on the right in the variable on the left.

13
New cards

What does input() usually return?


Text (a string), even when you type a number.

14
New cards

If you type 5 into input(), what does Python receive?



The text "5", not the number 5.

15
New cards

Can a variable's value change?

Yes. You can store a different value in it later.

16
New cards

What does print() do?


It displays information on the screen

17
New cards

What happens in name = input("What is your name?")?

Python asks a question and stores your answer in name.