Python Programming 101

4 Questions | Total Attempts: 461

SettingsSettingsSettings
Please wait...
Python Programming 101

Testing on basic python programming. More questions can be found at https://pyschools. Com


Questions and Answers
  • 1. 
    Which of the following is not a valid data type in python?
    • A. 

      Int

    • B. 

      Float

    • C. 

      Double

    • D. 

      Str

  • 2. 
    Complete the code to print the following numbers:13579for i in range(1, 10, __):    print i
  • 3. 
    Complete the code to print the following patterns: 1 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 45 5 5 5 5 for i in range(1, 6, 1):    print ____ * 5
  • 4. 
    Study the code below: for i in x:   print iWhich of the option below is incorrect?
    • A. 

      X is a str

    • B. 

      X is an int

    • C. 

      X is a list

    • D. 

      X is a tuple