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 4 years, 11 months ago
- 1 answers
Related Questions
Posted by Manoj Kumar Manoj Kumar 2 weeks, 1 day ago
- 0 answers
Posted by Shakthi Shakthi 1 month, 1 week ago
- 0 answers
Posted by Kathiravan Kathir 2 months, 3 weeks ago
- 1 answers
Posted by B.K Bhuyan.18 2 months, 2 weeks ago
- 0 answers
Posted by Gaya Thri 4 weeks ago
- 1 answers
Posted by Rada Rada 2 months ago
- 2 answers
Posted by Asmita Bhaumik 3 months, 1 week ago
- 2 answers
Posted by Ekas Kaur Sachdeva 6 months, 1 week ago
- 1 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 4 years, 11 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