Write a python program that display …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Harshita Rai 5 years, 7 months ago
- 1 answers
Related Questions
Posted by Syedali Fathima 5 months, 3 weeks ago
- 1 answers
Posted by Kandeepan Jothivel 6 months, 3 weeks ago
- 2 answers
Posted by Hanni Pham 4 months, 2 weeks ago
- 1 answers
Posted by Priya Shukla 5 months, 3 weeks ago
- 1 answers
Posted by Manoj Kumar Manoj Kumar 7 months, 2 weeks ago
- 0 answers
Posted by Prawar Narang 6 months, 2 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 2 weeks ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Khushbu Garg 5 years, 6 months ago
<code>##</code>
<code># Python's program to get the day of week of today or given date.</code>
<code>import</code> <code>datetime</code>
<code>dayofweek </code><code>=</code> <code>datetime.date(</code><code>2010</code><code>, </code><code>6</code><code>, </code><code>16</code><code>).strftime(</code><code>"%A"</code><code>)</code>
<code>print</code><code>(dayofweek)</code>
<code># weekday Monday is 0 and Sunday is 6</code>
<code>print</code><code>(</code><code>"weekday():"</code><code>, datetime.date(</code><code>2010</code><code>, </code><code>6</code><code>, </code><code>16</code><code>).weekday())</code>
<code># isoweekday() Monday is 1 and Sunday is 7</code>
<code>print</code><code>(</code><code>"isoweekday()"</code><code>, datetime.date(</code><code>2010</code><code>, </code><code>6</code><code>, </code><code>16</code><code>).isoweekday())</code>
<code>dayofweek </code><code>=</code> <code>datetime.datetime.today().strftime(</code><code>"%A"</code><code>)</code>
<code>print</code><code>(dayofweek)</code>
<code>print</code><code>(</code><code>"weekday():"</code><code>, datetime.datetime.today().weekday())</code>
<code>print</code><code>(</code><code>"isoweekday()"</code><code>, datetime.datetime.today().isoweekday())</code>
1Thank You