Report Bug

Qus

What will be the output of the following Python code?

import time

  t=(2010, 9, 20, 8, 15, 12, 6) 

time.asctime(t)

Qusनिम्नलिखित Python कोड का आउटपुट क्या होगा?


A. ‘20 Sep 2010 8:15:12 Sun’
B. ‘2010 20 Sept 08:15:12 Sun’
C. ‘Sun Sept 20 8:15:12 2010’
D. Error


Solution
D. Error



Explanation
The code shown above results in an error because this function accepts exactly 9 arguments (including day of the year and DST), but only 7 are given. Hence an error is thrown.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad