Skip to content

Python Basics Quiz

Test your understanding of Python fundamentals: syntax, types, control flow, and built-in functions.

beginner
Question 1 of 7
Question 1 of 7python

Which of the following is the correct way to create a variable in Python?

python
# Option A
name = "Alice"

# Option B
let name = "Alice"

# Option C
var name = "Alice"

# Option D
string name = "Alice"