Report Bug

Qus

What will be the output of the following Python code?

import time

  t=(2010, 9, 20, 8, 45, 12, 6, 0, 0) 

time.asctime(t)

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


A. ‘Sep 20 2010 08:45:12 Sun’
B. ‘Sun Sep 20 08:45:12 2010’
C. ’20 Sep 08:45:12 Sun 2010’
D. ‘2010 20 Sep 08:45:12 Sun’


Solution
B. ‘Sun Sep 20 08:45:12 2010’



Explanation
The code shown above returns the given date and time in a particular format. Hence the output of the code shown above will be: ‘Sun Sep 20 08:45:12 2010’.
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