What will be the output of the following Python code?
random.seed(3) random.randint(1,5) 2 random.seed(3) random.randint(1,5)
What will be the output of the following Python function (random module has already been imported)?
random.choice('sun')
import sys
sys.argv[0]
What will be the output of the following Python code
sys.argv
What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?
tday=datetime.date.today()
print(tday.weekday())
Which of the following will throw an error if used after the following Python code?
bday=datetime.date(2017,9,18)
t_day=bday-tday
What will be the output of the following Python code if the system date is: 6/19/2017
tdelta=datetime.timedelta(days=10)
print(tday+tdelta)
import random
random.choice(2,3,4)
import time
time.asctime()
What will be the output of the following Python code, if the code is run on Windows operating system?
if sys.platform[:2]== 'wi':
print("Hello")
time.time()
random.randrange(1,100,10)
random.randrange(0,91,5)
eval(sys.stdin.readline())
Computer
"India"
random.choice([10.4, 56.99, 76])
What will be the output of the following Python function, assuming that the random module has already been imported?
random.uniform(3,4)