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 天
帖子存档
7 291
#PracticeCode: 0008
Task:
Fill the water into all the bottles. Some are already full, while some are empty and some are partially filled.
Each bottle can contain X millilitres of water (dynamic, entered by user), while the capacity of Jar is 1 litre.
An array (given by user) is given with the existing bottles on the table, with 0 to 10 as the values for each element, where 0 means its empty and 10 means its full.
Fill all the bottles and print how much additional water was used to fill all the bottle.
Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.
Input:
- Bottles - 5,6,10,0
- BottleCapacity - 1
Output: 1.9 ltrs
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
7 291
#PracticeCode: 0007
Task:
Write a function, which counts each character in a string and prints the output with the character count.
Input: "xxXXXXXAAABBcCDDDEEEEccc",
Output: "x2X5A3B2c1C1D3E4c3"
Try solving it using the an optimal algorithm and then solve it using functions or packages of Python.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
7 291
#PracticeCode: 0006
Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."
Use an optimal algorithm to solve this problem.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
7 291
Hello all,
The Practice problems are posted to improve your problem solving skill. While a lot of problems already have inbuilt functions in Python, if the task is about coming up with an algorithm, then its better you stay away from using the inbuilt functions.
You can submit your solutions to the tasks here ——»»» @python_programmers_club
Post only the code and don't post a screen shot of your solution. If the approach is not already submitted, then we will update the github page with your solution.
There can be a lot of different approaches, the variety of solutions will only allow us to look from a different perspective.
And finally, let's have a good debate on these approaches.
7 291
#PracticeCode: 0005
Permutation: In mathematics, permutation is the act of arranging the members of a set into a sequence or order, or, if the set is already ordered, rearranging its elements—a process called permuting. Permutations differ from combinations, which are selections of some members of a set regardless of order.
Task:
Write a function, which determines whether one line is a permutation of another. Write an algorithm that optimally finishes the task.
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
7 291
Practice Code: 0004
Check if a palindrome can be created from a string entered by the user.
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar, or the number 10801.
"madam" => true - is already a palindrome
"mamad" => true - can be made a palindrome
"sir" => false - cannot be made a palindrome
««« Click here for the Solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
7 291
Practice Code: 003
In an array, that has been sorted in ascending order, but has been cyclically shifted, find the element that has the minimum element.
Example, [5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4]
Write an algorithm that optimally finds the minimum element in such an array.
««« Click here for solution »»»
🔥Ready to take this challenge? 🔥
#python #practiceCode #samples #interviewQuestions #numbers #algorithm
7 291
Typing Speed Test – Build your first game in Python
In this Python project idea, we are going to build an exciting project through which you can check and even improve your typing speed. For a graphical user interface, we are going to use the pygame library which is used for working with graphics. We will draw the images and text to be displayed on the screen.
#python #sourceCode #sampleCode #project #pygame
7 291
pyIDM - Download Manager in Python
python open source alternative to IDM (Internet Download Manager) with multi-connections, high speed engine, based on python, pycurl, youtube_dl, and pysimplegui.
For those looking for some complex projects to get your hands dirty, try this one. Source code is available for reference, build it and if you find interesting, join the repo.
#python #sourceCode #sampleCode #project #pycurl #youtube_dl #pysimplegui
7 291
Practice Code: 002
Accept a number from the user and return the sum of all natural numbers that are multiples of 5,7 less than the number entered by the user. Example --- Input: 15 --- 5, 7, 10, 14 and return 36
🔥Can you solve this? 🔥
#python #practiceCode #samples #interviewQuestions #numbers
7 291
Practice Code: 001
Each level increases the complexity. Each level should satisfy the previous level
🔥How many levels can you achieve? 🔥
#python #practiceCode #samples #interviewQuestions #strings #numbers #validation
7 291
Drawing Kaleidoscope Pictures with Pygame
A very simple project to make a Kaleidoscope image using Python.
Good for practice program.
#python #sourceCode #sampleCode #pygame #random
7 291
*
Building Tic-Tac-Toe with Pygame Tutorial
Pygame is a useful python module that allows you to build graphical interfaces. It is great for python beginners to use and can lead to many interesting projects.
#python #sourceCode #sampleCode #pygame #project #game
7 291
Did You Know - Python Tips : 004
#Chaining assignment : assigning the same value to multiple variables, all variables will reference the same object
# Useful when initialising a set of variables with a default value.
a = b = c = x = y = z = 0
print(a, b, c, x, y, z)
#python #tips #HowTo
7 291
Did You Know - Python Tips : 003
# Using all the elements in a list, create a single string
mylist = ["Hello!", "Welcome", " to", "iGnani"]
print(" ".join(mylist))
#python #tips #HowTo
7 291
Did You Know - Python Tips : 002
# In-Place Swapping Of Two Variables, works with any datatype
x, y = 'hello', 'world'
print(x, y)
x, y = y, x
print(x, y)
#python #tips #HowTo
7 291
Did You Know - Python Tips : 001
# Very simple string reverse trick in Python
x = 'Python'
print(x[::-1])
» nohtyP
#python #tips #HowTo
7 291
.
CLICK HERE ——-»»» A Fast, Extensible Progress Bar for Python and CLI
Instantly make your loops show a smart progress meter - just wrap any iterable with tqdm(iterable), and you're done!
#python #controls #progressBar #sourceCode #sampleCode
7 291
Face Detection - A real time application for face-detection.
#python #faceDetection #sourceCode #sampleCode
7 291
A single repository of projects related to Python, ML, Datascience & BigData. I will be updating project / sample code on these topics or providing links to repositories. This will be a one stop shop for code.
