GoConqr has a new look! Let us know what you think.

Quiz

Python random module: randint, randrange and choice

_ 1 question

Take the quiz

Questions in this quiz (1)

  1. 1Look at the code below: Which line of code would you insert so that it is possible for the program to output the following result: 6 81 0

    import random
    # Insert lines of code here.
    print (a, b, c)

    1. Arandom.randrange (10, 100, 3)
      b = random.randint (0, 100)
      C = random.choice ( (0, 100, 3))
    2. Ba random.randint (0, 100)
      random.randrange (10, 100, 3)
      C- random.choice ( (0, 100, 3))
    3. Ca=random.choice ( (0, 100, 3)) a
      b=random.randrange (10, 100, 3)
      C - random.randint (0, 100)
    4. Drandom.randrange (10, 100, 3)
      b = random.randint (0, 100)
      c = random.choice ( (0, 100, 3))

Information

Description
Quiz on Untitled, created by _ _ on 19/01/2022.
Author
_ _
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on Python Modules and Packages

Feedback

What is it about?

What do you think of the new look?

How do you like it?