Python Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Algorithm-

A

A collection of unambiguous and executable operations to perform some task in a finite amount of time.

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

Values-

A

Any literal that can be stored in a memory location. Values can be numeric, text consisting of characters or specific symbols

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

Variable-

A

A named memory location. We assign values to variables.

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

Expression-

A

A combination of operator and operations that evaluate to a value

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

Assignment statement-

A

Used to store the value of an expression in a variable.

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

5 data types

A

Float, integer, string, list, Boolean

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

Data types tell…

A

the interpreter the range of values that can be stored and the kind of operations that are possible for a given variable.

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

Integers

A
  • Int

- Positive and negative whole numbers

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

Floating-point number

A
  • Float
  • Stores any number that can be represented on the number line
  • Decimal or fractional numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List

A
  • []

- Holds an array of data

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

Character

A
  • Char

- Single character on the keyboard

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

Boolean

A

True/false values

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

String

A
  • Str

- Sequence of character

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

Function for finding length of a string

A

Len()

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

Function for printing word in upper case

A

.upper()

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