Javaexercise.com

Python Basic Quiz for Beginners


1. How to create an empty list in Python?

  •   
  •   
  •   
  •   

2. Which loop is not available in Python?

  •   
  •   
  •   
  •   

3. What is PSF in Python?

  •   
  •   
  •   
  •   

4. How to get datatype of variable x?

  •   
  •   
  •   
  •   

5. Which type is used to collect unique elements in Python?

  •   
  •   
  •   
  •   

6. How to get String length in Python?

  •   
  •   
  •   
  •   

7. Which is a membership operator in Python?

  •   
  •   
  •   
  •   

8. Why do Python use variables?

  •   
  •   
  •   
  •   

9. How to create global variable in Python?

  •   
  •   
  •   
  •   

10. How to create an empty dictionary in Python?

  •   
  •   
  •   
  •