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 день
Триває завантаження даних...
Схожі канали
Хмара тегів
Немає даних
Виникли проблеми? Будь ласка, оновіть сторінку або зверніться до нашого support-менеджера.
Вхідні та вихідні згадування
---
---
---
---
---
---
Залучення підписників
травень '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 |
