Python Questions
رفتن به کانال در Telegram
Tasks for Beginners, Interview Questions, Regular expressions, simple coding problems, Quiz etc. Useful Resources — »»» @python_resources_iGnani Projects for Practice — »»» @python_projects_repository Discussion Forum — »»» @python_programmers_club
نمایش بیشترکشور مشخص نشده استدسته بندی مشخص نشده است
5 285
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
در حال بارگیری داده...
کانالهای مشابه
ابر برچسبها
هیچ دادهای
مشکلی وجود دارد؟ لطفاً صفحه را تازه کنید یا با مدیر پشتیبانی ما تماس بگیرید.
اشارات ورودی و خروجی
---
---
---
---
---
---
جذب مشترکین
سپتامبر '24
سپتامبر '24
+24
در 0 کانالها
اوت '240
در 0 کانالها
Get PRO
ژوئیه '240
در 1 کانالها
Get PRO
ژوئن '24
+50
در 0 کانالها
Get PRO
مه '24
+40
در 0 کانالها
Get PRO
آوریل '24
+38
در 0 کانالها
Get PRO
مارس '24
+65
در 0 کانالها
Get PRO
فوریه '24
+459
در 0 کانالها
Get PRO
ژانویه '240
در 0 کانالها
Get PRO
دسامبر '230
در 0 کانالها
Get PRO
نوامبر '230
در 1 کانالها
Get PRO
اکتبر '230
در 1 کانالها
Get PRO
سپتامبر '230
در 0 کانالها
Get PRO
اوت '230
در 0 کانالها
Get PRO
ژوئیه '230
در 0 کانالها
Get PRO
ژوئن '230
در 0 کانالها
Get PRO
مه '230
در 0 کانالها
Get PRO
آوریل '230
در 0 کانالها
Get PRO
مارس '230
در 0 کانالها
Get PRO
فوریه '230
در 0 کانالها
Get PRO
ژانویه '23
+105
در 0 کانالها
Get PRO
دسامبر '22
+147
در 0 کانالها
Get PRO
نوامبر '22
+154
در 0 کانالها
Get PRO
اکتبر '22
+166
در 0 کانالها
Get PRO
سپتامبر '22
+211
در 0 کانالها
Get PRO
اوت '22
+530
در 0 کانالها
Get PRO
ژوئیه '220
در 0 کانالها
Get PRO
ژوئن '220
در 0 کانالها
Get PRO
مه '22
+85
در 0 کانالها
Get PRO
آوریل '22
+1 063
در 0 کانالها
Get PRO
مارس '220
در 0 کانالها
Get PRO
فوریه '220
در 0 کانالها
Get PRO
ژانویه '220
در 0 کانالها
Get PRO
دسامبر '210
در 0 کانالها
Get PRO
نوامبر '210
در 0 کانالها
Get PRO
اکتبر '210
در 0 کانالها
Get PRO
سپتامبر '21
+91
در 0 کانالها
Get PRO
اوت '21
+165
در 0 کانالها
Get PRO
ژوئیه '21
+199
در 0 کانالها
Get PRO
ژوئن '21
+180
در 0 کانالها
Get PRO
مه '21
+123
در 0 کانالها
Get PRO
آوریل '21
+110
در 0 کانالها
Get PRO
مارس '21
+141
در 0 کانالها
Get PRO
فوریه '21
+129
در 0 کانالها
Get PRO
ژانویه '21
+112
در 0 کانالها
Get PRO
دسامبر '20
+1 737
در 0 کانالها
| تاریخ | رشد مشترکین | اشارات | کانالها | |
| 25 سپتامبر | +1 | |||
| 24 سپتامبر | +2 | |||
| 23 سپتامبر | 0 | |||
| 22 سپتامبر | +1 |
پستهای کانال
PyTip for the day:
Use the "enumerate" function to iterate over a sequence and get the index of each element.
Sometimes when you're iterating over a list or other sequence in Python, you need to keep track of the index of the current element. One way to do this is to use a counter variable and increment it on each iteration, but this can be tedious and error-prone.
A better way to get the index of each element is to use the built-in "enumerate" function. The "enumerate" function takes an iterable (such as a list or tuple) as its argument and returns a sequence of (index, value) tuples, where "index" is the index of the current element and "value" is the value of the current element. Here's an example:
Iterate over a list of strings and print each string with its index
strings = ['apple', 'banana', 'cherry', 'date']
for i, s in enumerate(strings):
print(f"{i}: {s}")
In this example, we use the "enumerate" function to iterate over a list of strings. On each iteration, the "enumerate" function returns a tuple containing the index of the current string and the string itself. We use tuple unpacking to assign these values to the variables "i" and "s", and then print out the index and string on a separate line.
The output of this code would be:
apple
1: banana
2: cherry
3: date
Using the "enumerate" function can make your code more concise and easier to read, especially when you need to keep track of the index of each element in a sequence.| 2 | := which of the following is true about this operator | 10 021 |
| 3 | What does HttpResponse do in Django? | 20 852 |
| 4 | Select the command that installs Django? | 6 211 |
| 5 | ```
print('The sum of {0} and {1} is {2}'.format(5, 10, 15)) ``` What is the output? | 10 797 |
| 6 | print('pyypyypypyppy'.replace('py', 'iG', 3))
#What is the output? | 9 880 |
| 7 | print('iGnani'.translate({'i': '1', 'G': '2', 'n': '3', 'a': '4', 'i': '5'}))
#What is the output. Explain translate() | 7 978 |
| 8 | print('KLM'.maketrans('KLM', '123'))
What is the output? Explain the function maketrans() | 7 133 |
| 9 | print(r"\npython")
#What is the output? Explain Why? | 6 448 |
| 10 | x = (round(4.5) - round(-4.5))
#What is the value of x | 6 242 |
| 11 | print('1.1'.isnumeric())
#What is the output? Explain this. | 5 798 |
| 12 | print('xy'.isalpha())
#What is the output of the above code? | 5 325 |
| 13 | x = “python”+1+2+3
# What is the value of x? Explain? | 5 104 |
| 14 | print("abbcabcacabb".count('abb', 2, 11))
#What is the output of the above statement? Explain this statement? | 5 042 |
| 15 | https://t.me/python_interview_questions/117
Only 14% got this correct.
True, False and None are capitalized, that is the first letter in these keywords start with a Capital letter.
The rest of all the other keywords are in lower case.
Hence, the correct answer is "None of the above". | 6 045 |
| 16 | print('*', "abcdef".center(7), '*')
# What is the output? Can you Explain? | 4 740 |
| 17 | x = "Python World"
x[3] = 's'
# What is the value of x? Can you explain Why? | 4 549 |
| 18 | x, y = 5, 6
x+y == _____
#Which of the following statements is equal to x+y? | 4 325 |
| 19 | x=1.23456789
'%f | %e | %g' %(x, x, x)
#What is the result? Explain Why? | 4 028 |
| 20 | x = [1, 23, 'hello', 1]
type(x)
# What datatype of x? Explain? | 4 111 |
