Skip to content

Python Programming

Master Python Programming with 50 free flashcards. Study using spaced repetition and focus mode for effective learning in Programming.

🎓 50 cards ⏱️ ~25 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What is Python?

Show ▼

Python is a high-level, interpreted programming language known for its readability and simplicity. It supports multiple paradigms including procedural, object-oriented, and functional programming.

Who created Python and when?

Show ▼

Guido van Rossum created Python, with the first version released in 1991. It was named after the British comedy series Monty Python.

What are the key features of Python?

Show ▼

Python features dynamic typing, automatic memory management, extensive standard library, and cross-platform compatibility. It emphasizes code readability with significant whitespace.

How do you run a Python script from the command line?

Show ▼

Save the code in a file with .py extension, then run python filename.py in the terminal. Use python3 if Python 2 is also installed.

What is the Python REPL?

Show ▼

REPL stands for Read-Eval-Print Loop, an interactive shell for executing Python code line-by-line. Access it by typing python in the terminal.

What are variables in Python?

Show ▼

Variables are names that reference objects storing data. They are created on first assignment, like x = 5, and are dynamically typed.

Explain dynamic typing in Python.

Show ▼

Dynamic typing means variable types are determined at runtime, not compile-time. A variable can hold different types sequentially, e.g., x = 5; x = 'hello'.

What are the basic data types in Python?

Show ▼

Basic immutable types include int (integers), float (floating-point), str (strings), and bool (True/False). Mutable types include lists and dictionaries.

What is the value of None in Python?

Show ▼

None is a singleton object representing the absence of a value, often used as a default return for functions without explicit returns.

How do you convert data types in Python?

Show ▼

Use functions like int(), float(), str(), or bool(). For example, int('42') converts string '42' to integer 42.

What are arithmetic operators in Python?

Show ▼

They include + (addition), - (subtraction), * (multiplication), / (division), // (floor division), % (modulo), and ** (exponentiation).

What do comparison operators return?

Show ▼

Comparison operators like ==, !=, >, <, >=, <= return a boolean value: True or False.

🎓 Start studying Python Programming

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Programming

📖 Learning Resources