Filter
Exclude
Time range
-
Near
Now, if you use parenthesis, then that does something completely different. python_quiz() will actually cause the function to run. In this case, python_quiz() is a recursive function, ie, it calls itself. Furthermore, there is no stopping condition. So,
1
4
125
Replying to @RecursiveNeuron
Answer: <function python_quiz at (some memory location)> Solution: The `def` keyword defines a function python_quiz. When we do print(python_quiz) The function is not called, because there are no parenthesis at the end. Instead, the details of the function are printed.
1
10
1,906
#Python quiz What will be the output of the below code? What will happen if we put parenthesis next to python_quiz in the print statement? i.e: print(python_quiz()) #programmer #Python #codingchallenge
2
2
10
1,889
19 Dec 2021
x=1 for i in range (3): for j in range (i): x =1 print(x) โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€” A- 1 B- 2 C- 3 D- 4 #Python_quiz
7
1
3
17 Dec 2021
def pyq(x): x[2]=20 y=[10,20,30] x=[0,5,10,15] pyq(y) print (y) โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€” A- [0,5,20,15] B- [0,20,10,15] C- [10,20,30] D- [10,20,20] #Python_quiz
6
3
5
14 Dec 2021
x = {0:'a',1:'b',2:'c'} for i in x.keys : print(i) โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€” A- 0 1 2 B- a b c C- Error D- None #Python_quiz
7
3
10
13 Dec 2021
x=0 for i in range(2): for j in range(2): if i != j : x=x 1 x=x-2 print(x) โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€” A- 4 B- -4 C- 2 D- -2 #Python_quiz
16
7
45
ุงู„ุนุฏุฏ ุงู„ุฃูˆู„ูŠ ูŠู‚ุจู„ ุงู„ู‚ุณู…ุฉ ุนู„ู‰ ู†ูุณู‡ ูˆุงู„ูˆุงุญุฏุŒ ูุฃู†ุง ู‡ู†ุง ุนุงูŠุฒุงู‡ ูŠุจุฏุฃ ู…ู† ุจุนุฏ ุงู„ูˆุงุญุฏ ู„ูˆ ู„ู‚ู‰ ุฃูŠ ุฑู‚ู… ู…ู† ุจุนุฏ ุงู„ูˆุงุญุฏ(ู…ู† ุฃูˆู„ ุงู„2)ุŒ ุงู„ุฑู‚ู… ูŠู‚ุจู„ ุงู„ู‚ุณู…ุฉ ุนู„ูŠู‡ ูŠุจู‚ุง ู‡ูˆ ู…ุด ุฑู‚ู… ุฃูˆู„ูŠ ูˆุถุญุชุŸ
2
ุงู„ุณู„ุงู… ุนู„ูŠูƒู… ู‡ู„ ู…ู† ุงู„ู…ู…ูƒู† ุฃู† ุชุทู„ุน ุนู„ู‰ ู‡ุฐุง ุงู„ููŠุฏูŠูˆ ู…ุฏุชู‡ ู„ุง ุชุชุฌุงูˆุฒ ูฅ ุฏู‚ุงุฆู‚ ูฌ ุดุฑุญุช ููŠู‡ ููƒุฑุฉ Class & Method ุจุทุฑูŠู‚ุชูŠ ุงู„ุฎุงุตุฉ ูˆู‡ูŠ ู…ู† ุฃู‡ู… ุฃุณุงุณูŠุงุช ูƒุชุงุจุฉ ุงู„ุฃูƒูˆุงุฏ youtu.be/52GTLiDmx68

1
2
ุชุญุฏูŠ ุณู‡ู„ ๐Ÿ˜‡ ุจุงุณุชุฎุฏุงู… javascript ๐Ÿ’ช๐Ÿผ
7
8 Oct 2021
Java โ€ฆ itโ€™s bitwise operators ๐Ÿคท๐Ÿปโ€โ™‚๏ธ
2
4
1 Oct 2021
ุงูŠ ุฑู‚ู… ุบูŠุฑ ุงู„ุตูุฑ ุจูŠุณุงูˆูŠ true ููƒุฏูŠ ุงู„ุงุฌุงุจุฉ ุงู„ if ู‡ุชุดุชุบู„ ูˆูŠุทุจุน ุงูˆู„ ุงู…ุฑ ุงูˆู…ุงู„ ู„ูˆ ูƒุงู†ุช ุงู„ x=0 ููƒุฏูŠ ุงู„ if ู…ุด ู‡ูŠุดุชุบู„ ูˆูŠุฏุฎู„ ูŠู†ูุฐ ุงู„ูƒูˆุฏ ุงู„ูŠ ู…ูˆุฌูˆุฏ ููŠ else ูˆุจูƒุฏูŠ ู‡ูŠุทุจุน 45
1
3