Python Fundamentals Quiz 2 Python Fundamentals Quiz 2 "Welcome to the Python Fundamentals Quiz! Test your basic knowledge of Python programming with these 10 questions. Whether you are just starting out or brushing up on your skills, this quiz will help reinforce key Python concepts. Good luck!" 1 / 10 What is the correct file extension for Python files? .p .pyth .pt .py 2 / 10 Which of the following is the correct way to create a variable in Python? int x = 10 x := 10 var x = 10 x = 10 3 / 10 Which of the following data types is immutable in Python? set List Tuple Dictionary 4 / 10 Which of the following is a mutable data type in Python? Tuple List String Integer 5 / 10 Which of the following is true for Python variables? They are dynamically typed Their type cannot change after assignment They are statically typed They must be declared before use 6 / 10 How do you create a set in Python? ( ) [ ] { } {1, 2, 3} 7 / 10 Which keyword is used to start a loop in Python? loop iterate for while 8 / 10 What is the correct file extension for Python files? .py .pyth .pt .p 9 / 10 Which of the following is the correct way to create a dictionary in Python? {} {key: value} [ ] (key: value) 10 / 10 What is the correct syntax for defining a function in Python? function myFunction(): def myFunction(): function myFunction: def myFunction: Your score isThe average score is 50% 0% Restart quiz