python for rusn 100

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

1/12

flashcard set

Earn XP

Description and Tags

goooooo chiefs!

13 Terms

1
New cards
<p>String</p>

String

Text inside quotes (ie: print (“I am a ____”))

2
New cards
<p>Integer</p>

Integer

Whole number without decimals (ie: print (3))

3
New cards
<p>Float </p>

Float

A number with decimals

4
New cards
<p>Variables </p>

Variables

Used to store data values; = assigns a value to a variable

5
New cards
<p>If/else statements </p>

If/else statements

Evaluates if a statement is true; == checks whether a condition is true or false

6
New cards
<p>Loops </p>

Loops

Iterating over a sequence

7
New cards
<p>List</p>

List

An ordered collection of items; may contain different data types (ie: integer, string, float). Use square braces to find an item within a string or list based on its index (position).

8
New cards
<p>Dictionary </p>

Dictionary

Lookup table with a key on the side and a value on the other; defined by curly braces.

9
New cards
<p>Input </p>

Input

Lets users assign a variable; defined by input ()

10
New cards
<p>Len</p>

Len

Will find the length of something; defined by len()

11
New cards
<p>Range</p>

Range

Generates a sequence of numbers from 0 up to (but not including) the number given; defined by range()

12
New cards
<p>Ord </p>

Ord

Converts a character to number; defined by ord(). Opposite function is chr().

13
New cards
<p>Chr</p>

Chr

Converts a number to a character; defined by chr(). Opposite function is chr().