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? .py .pyth .p .pt 2 / 10 Which of the following is a mutable data type in Python? String Tuple Integer List 3 / 10 What is the correct file extension for Python files? .pt .pyth .py .p 4 / 10 Which of the following is true for Python variables? They are statically typed They must be declared before use They are dynamically typed Their type cannot change after assignment 5 / 10 What is the correct syntax for defining a function in Python? function myFunction: def myFunction(): def myFunction: function myFunction(): 6 / 10 Which of the following is the correct way to create a dictionary in Python? {key: value} (key: value) [ ] {} 7 / 10 How do you create a set in Python? [ ] ( ) { } {1, 2, 3} 8 / 10 Which of the following is the correct way to create a variable in Python? x := 10 int x = 10 var x = 10 x = 10 9 / 10 Which keyword is used to start a loop in Python? for while iterate loop 10 / 10 Which of the following data types is immutable in Python? set Tuple List Dictionary Your score isThe average score is 50% 0% Restart quiz