Ask questions which are clear, concise and easy to understand.
Ask QuestionPosted by Aastha Vishwakarma 5 years, 6 months ago
- 0 answers
Posted by Deepika Nagesh 5 years, 6 months ago
- 0 answers
Posted by Anjali Katiyar 5 years, 6 months ago
- 2 answers
Himanshu Rajput 5 years, 6 months ago
Khushbu Garg 5 years, 6 months ago
In Python, a function is recursive if it calls itself and has a termination condition.
Posted by Anjali Katiyar 5 years, 6 months ago
- 1 answers
Sia ? 3 years, 5 months ago
A global variable is a variable that is accessible globally. A local variable is one that is only accessible to the current scope, such as temporary variables used in a single function definition.
Posted by Anjali Katiyar 5 years, 6 months ago
- 1 answers
Suyash Pratap 5 years, 6 months ago
Posted by Ďãřşháñăã Yadav ? ? ? ✊ 5 years, 6 months ago
- 1 answers
Aman Kumar 5 years, 6 months ago
Posted by Damodar Meena 5 years, 6 months ago
- 0 answers
Posted by Dibyendu Malik 5 years, 7 months ago
- 1 answers
Posted by Harshita Rai 5 years, 7 months ago
- 1 answers
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>
Posted by Binwant Kaur 5 years, 7 months ago
- 0 answers
Posted by Isha Sharma 5 years, 7 months ago
- 0 answers
Posted by Hemnt Choudhary 5 years, 7 months ago
- 1 answers
Khushbu Garg 5 years, 7 months ago
Hard disks, as the name implies, use rigid platters onto which the recording material is coated.
Floppy disks are low capacity storage due to having only two recording surfaces versus several in a hard disk.
Posted by Pihu Jat 3 years, 5 months ago
- 1 answers
Sia ? 3 years, 5 months ago
Posted by Ritik Chauhan 5 years, 7 months ago
- 1 answers
Yogita Ingle 5 years, 7 months ago
- If two or more functions are given the same name but different no/type of arguments then it is called as function overloading. One thing to keep in mind is that functions are not differentiated on the basis of their return type, they are known distinct to compiler only if they have different no/type of arguments.
- It means functions having same name and same no and type of arguments but with different return type generate error.
- However default arguments are the arguments for which if no value is passed in function call, they use some default value provided by the programmer already.
- Though these default arguments can be avoided if some value is passed while function call, they are easier if some constant value is to be passed repeatedly and change in the value is very less frequent.
Posted by Pramod Kumar Singh 5 years, 7 months ago
- 1 answers
Vinay Rj 5 years, 7 months ago
Posted by Chetan Gulia 5 years, 7 months ago
- 1 answers
Khushbu Garg 5 years, 7 months ago
Python program to find the factorial of a number provided by the user.
# change the value for a different result
num = 8
# uncomment to take input from the user
#num = int(input("Enter a number: "))
factorial = 1
# check if the number is negative, positive or zero
if num < 0:
print("Sorry, factorial does not exist for negative numbers")
elif num == 0:
print("The factorial of 0 is 1")
else:
for i in range(1,num + 1):
factorial = factorial*i
print("The factorial of",num,"is",factorial)
Posted by Rahul Jangid 5 years, 7 months ago
- 0 answers
Posted by Sudhir Yadav A2 5 years, 7 months ago
- 4 answers
Priya Dharshini ? 5 years, 7 months ago
Aman Kumar 5 years, 7 months ago
Kumar Vishal Behera 5 years, 7 months ago
Posted by Sathiyamurthy Shanmugam 5 years, 7 months ago
- 0 answers
Posted by Sudhir Yadav A2 5 years, 7 months ago
- 2 answers
Priya Dharshini ? 5 years, 7 months ago
Posted by Jatin Agrawal 5 years, 7 months ago
- 1 answers
Yogita Ingle 5 years, 7 months ago
A Photodiode is an example of an optoelectronic junction device, which implies that it is used as an electrical to optical or an optical to electrical transducer. It works on the effect of light falling onto a diode which leads to the generation of current through it. It is implemented over a special p-n junction diode by fabricating a transparent window on top of it which allows light to be incident on the diode.
Posted by Kumar Vishal Behera 5 years, 7 months ago
- 3 answers
Priya Dharshini ? 5 years, 7 months ago
Aman Kumar 5 years, 7 months ago
Posted by Priya Dharshini ? 5 years, 7 months ago
- 3 answers
Priya Dharshini ? 5 years, 7 months ago
Posted by Hrishikesh Majumdar 5 years, 7 months ago
- 0 answers
Posted by Anurag Singh 5 years, 7 months ago
- 3 answers
Mohammed Imran 5 years, 7 months ago
✍️ ? 5 years, 7 months ago
Posted by Subhalaxmi Das 5 years, 7 months ago
- 1 answers
Vidushi Shukla 5 years, 7 months ago
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