DateTime module
Qus. 1 : <p>What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?</p><pre><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today() <br></span><span style="font-size: 14px;">print(tday)</span></pre><div><br></div>
- 18-06-2017
- 06-18-2017
- 2017-06-18
- Error
- 6
- 1
- 0
- 7
- Wed
- Wednesday
- 2
- 3
- 2017-16-19
- 2017-06-9
- 2017-06-29
- Error
- Current date only
- UTC time
- Current date and time
- Current time only
Programs
python program to generate 3 random integers between 100 and 999 which is divisible by 5
python program to generate 6 digit random secure OTP between 100000 to 999999
python program to generate 6 random numbers and then print their mean median and mode
python program to print the calendar of given month and year
python program to print the calendar of given year