← All flashcard decks
beginner📚 6 cards

Python Basics

Core Python: print, variables, data types, operators

01
What does print() do?
Outputs text/data to the console
print("Hello!")
02
How do you create a variable?
Just assign: name = "Aarav"
name = "Aarav"
03
What are the 4 basic data types?
int, float, str, bool
04
What does // operator do?
Floor division — rounds down
10 // 3 = 3
05
What does ** do?
Exponentiation: 2 ** 3 = 8
2 ** 10 = 1024
06
How does if-elif-else work?
Checks conditions top-to-bottom, first true branch runs
Ready to study?
Open the flashcards directory
Study now