Python Projects
رفتن به کانال در Telegram
A single repository of projects related to Python, ML, Datascience & BigData. Resources — »»» @python_resources_iGnani Projects — »»» @python_projects_repository Questions— »»» @python_interview_questions Forum — »»» @python_programmers_club
نمایش بیشترکشور مشخص نشده استدسته بندی مشخص نشده است
7 291
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
در حال بارگیری داده...
کانالهای مشابه
ابر برچسبها
هیچ دادهای
مشکلی وجود دارد؟ لطفاً صفحه را تازه کنید یا با مدیر پشتیبانی ما تماس بگیرید.
اشارات ورودی و خروجی
---
---
---
---
---
---
جذب مشترکین
مه '24
مه '24
+4
در 0 کانالها
آوریل '240
در 0 کانالها
Get PRO
مارس '240
در 0 کانالها
Get PRO
فوریه '24
+24
در 0 کانالها
Get PRO
ژانویه '24
+12
در 0 کانالها
Get PRO
دسامبر '23
+442
در 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
آوریل '230
در 0 کانالها
Get PRO
مارس '230
در 0 کانالها
Get PRO
فوریه '230
در 0 کانالها
Get PRO
ژانویه '230
در 0 کانالها
Get PRO
دسامبر '22
+203
در 0 کانالها
Get PRO
نوامبر '22
+183
در 0 کانالها
Get PRO
اکتبر '220
در 0 کانالها
Get PRO
سپتامبر '22
+195
در 0 کانالها
Get PRO
اوت '22
+488
در 0 کانالها
Get PRO
ژوئیه '220
در 0 کانالها
Get PRO
ژوئن '220
در 0 کانالها
Get PRO
مه '22
+76
در 0 کانالها
Get PRO
آوریل '22
+2 251
در 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
سپتامبر '210
در 0 کانالها
Get PRO
اوت '210
در 0 کانالها
Get PRO
ژوئیه '210
در 0 کانالها
Get PRO
ژوئن '210
در 0 کانالها
Get PRO
مه '210
در 0 کانالها
Get PRO
آوریل '21
+148
در 0 کانالها
Get PRO
مارس '21
+222
در 0 کانالها
Get PRO
فوریه '21
+197
در 0 کانالها
Get PRO
ژانویه '21
+230
در 0 کانالها
Get PRO
دسامبر '20
+2 905
در 0 کانالها
| تاریخ | رشد مشترکین | اشارات | کانالها | |
| 25 مه | +1 | |||
| 24 مه | 0 | |||
| 23 مه | 0 | |||
| 22 مه | +1 | |||
| 21 مه | 0 | |||
| 20 مه | 0 | |||
| 19 مه | 0 | |||
| 18 مه | +1 | |||
| 17 مه | +1 | |||
| 16 مه | 0 | |||
| 15 مه | 0 | |||
| 14 مه | 0 | |||
| 13 مه | 0 |
پستهای کانال
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 | We are on Discord. Join us by clicking this link https://discord.gg/EPhnZDbS5T | 10 632 |
| 3 | PyTip for the day: When working with lists in Python, consider using list comprehensions instead of for loops to perform operations on the list elements. List comprehensions are more concise, readable, and often faster than using traditional for loops.
For example, instead of using a for loop to create a new list that contains the squared values of the elements in an existing list, you can use a list comprehension like this:
> numbers = 1, 2, 3, 4, 5
> squarednumbers = [num ** 2 for num in numbers]
This will create a new list squarednumbers containing the squared values of the elements in numbers. | 11 735 |
| 4 | Practice Code: 053
Task:
You have to create a program where a list of numbers is given and a number of rotation is given. Now you to bring last number of list in front and swift each number to the right. Do this till the given number of rotation.
Sample :-
input - [1,2,3,4] , 2
output - [4,1,2,3] -> [3,4,1,2]
Good luck!
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm | 46 966 |
| 5 | Practice Code: 052
You have to create a program where you have to create a dictionary with key (1 to n) and value be square of the key.
Sample Run:-
input - 5
output - {1:1 , 2:4 , 3:9 , 4:16 , 5:25}
Good luck!
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm | 16 310 |
| 6 | Practice Code: 051
Write a program to return the sum of a series of sequential numbers. The sequence can be
a. 1,2,3,4,5.......n
b. 1,3,5,7,9,11,.....n
c. 2,4,6,8,10,12.....n
d. 35,42,49,56,63....n
Note: Do not use a loop to add the numbers, if that is what your idea is, not use a sum() or similar function to add them.
Write an algorithm that optimally finds the sum total.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm | 14 374 |
| 7 | #PracticeCode: 0050
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program where you have to create a list of first 5 and last 5 numbers in range of number 1 to 30.
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #PracticeCode #samples #interviewQuestions #conditions #list | 11 535 |
| 8 | #PracticeCode: 0050
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program where a list two digit tuples are given and you have to arrange them in ascending order by watching 2nd elements of the tuples.
Given - [(2,5),(1,2),(4,4),(2,3)]
Output - [(1,2),(2,3),(4,4),(2,5)]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #PracticeCode #samples #interviewQuestions #conditions #list | 10 148 |
| 9 | #PracticeCode: 0049
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program where a list of words is given and you have to print only those words which are longer than the given number n. N has to taken as input by the user.
Given_list = ["python" , "java" , "c" , "c++" , "kotlin"]
Input - 3
Output - ["python" , "java" , "kotlin"]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #PracticeCode #samples #interviewQuestions #conditions #list | 8 909 |
| 10 | #PracticeCode: 0048
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program to create a dictionary. Take input of an integer (from 1 to n) and print the dictionary in (a , a**2) format.
Sample :-
Input - 4
Output - { 1 : 1 , 2 : 4 , 3 : 9 , 4 : 16}
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #PracticeCode #samples #interviewQuestions #conditions #dict | 9 443 |
| 11 | #PracticeCode: 0047
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program to join multiple dictionaries to a new dictionary.
Sample :-
d1 = { "a" : 23 , "b" : 45 }
d2 = { "c" : 54 , "d" : 67 }
output - new_dict = { "a" : 23 , "b" : 45 , "c" : 54 , "d" : 67 }
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #PracticeCode #samples #interviewQuestions #conditions #dict | 9 243 |
| 12 | #PracticeCode: 0046
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input of all three sides of a triangle and then print the type of the triangle(equilateral, scalene, isosceles).
* Equilateral trinagle has all sides equal.
* Scalene triangle has all sides unequal.
* Isosceles triangle has two sides equal.
Sample :-
input -
a = 12
b = 8
c = 6
output - Scalene triangle
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 7 746 |
| 13 | #PracticeCode: 0045
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a month and year and print number of days in it.
Sample :-
input - January, 2020
output - days = 31
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 7 277 |
| 14 | #PracticeCode: 0034
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have to create a program in which take input a list of numbers and print the sum of their rounded values to 10 ( if one's place is more than 5 then round to next 10 or vice versa).
Sample :-
input → 16,17,18,19,14
output → 80
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 6 611 |
| 15 | #PracticeCode: 0044
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to print alphabet "A" on Screen.
Sample :-
***
* *
* *
*****
* *
* *
* *
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 6 620 |
| 16 | #PracticeCode: 0043
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to check validity of password given input by the users.
Conditons :
* At least 1 letter between [a-z] and 1 letter between [A-Z].
* At least 1 number between [0-9].
* At least 1 character from [$#@].
* Minimum length 6 characters.
* Maximum length 16 characters.
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 6 223 |
| 17 | #PracticeCode: 0042
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input a array of numbers and required sum. Now you have to print the lowest numbers from the array which sums to the required sum given as input.
Sample :-
input - [10,0,-1,20,25,30]
Required Sum - 45
output - [20,25]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 6 030 |
| 18 | #PracticeCode: 0041
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program in which a word or line is given as input and you have to print the number of letters, numbers and any special character (Not includes space) in it.
Sample :-
input - Python 3.8.1
output - Letters = 6
Numbers = 3
Special Char = 2
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 5 704 |
| 19 | #PracticeCode: 0040
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to take input 4 - digit binary numbers and print the even numbers in binary form.
Sample :-
input - 0100,0011,1010,1001,1100,1001
output - 0100,1010,1100
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 4 590 |
| 20 | #PracticeCode: 0039
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Create a program to input number of rows and coloumn and print a two-dimensional array.
Sample :-
input - rows = 2 , coloum = 2
output - [[0,1],[0,1]]
GOOD LUCK!
««« Discuss your solution @python_programmers_club and proper solutions will be added to our Github page »»»
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #conditions | 5 209 |
