Python Resources - Basic Python, ML, DataScience, BigData
2.46K subscribers
14 photos
3 files
243 links
You can find all kinds of resources related to Python, ML, DataScience and BigData.
Resources — »»» @python_resources_iGnani
Projects — »»» @python_projects_repository
Questions— »»» @python_interview_questions
Forum — »»» @python_programmers_club
Download Telegram
Forwarded from Python Questions
x = [3,1,2]
What is the output of x [1:]?
Anonymous Poll
9%
3,1,2
8%
3,1
76%
1,2
8%
None of the above
Forwarded from Python Projects
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
Forwarded from Python Projects
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
Forwarded from Python Projects
#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
Forwarded from Python Projects
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 in our group @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.
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Some resources on Python, check it out

🔥 http://bit.ly/2TH3YRu 🔥
Forwarded from Python Projects
#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
011: Using Nested Models in FastAPI - Python

This
is the 11th video of the FastAPI series, a web framework for Python to create RestAPI's.

In our previous videos, we saw how to pass simple data types or a simple model as a parameter. In this video you will learn:
* How-to use List, Set & Dict provided by the Typing module.
* How-to pass deeply nested models as parameters

#video #videotutorial #python #FastAPI
Natural Language Processing with Python

– Analyzing Text with the Natural Language Toolkit
Steven Bird, Ewan Klein, and Edward Loper
This version of the NLTK book is updated for Python 3 and NLTK 3.

#python #eBook #NLTK #naturalLanguageProcessing
Forwarded from Python Projects
#PracticeCode: 0009

Task:
Given a numerical array. Check if there are two such numbers in the array, multiplying which we get the given number X.
Array: [1, 2, 3, 4, 5, 6] Input: 10 --- Output: (2,5) Input: 12 --- Output: (2,6),(3,4)

Come up with an optimal algorithm and implement it. Use least amount of variables and statements, but performance matters.

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Projects
#PracticeCode: 0010
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You are a hard working child but you lack sleep 'cause of being busy with work. You can only sleep when you are off working day or you are on holidays.
You have to create a program that you get to sleep(return True) if you are on holidays or you are off from working day.

Example:
Input: Working=True , Holiday=False
Output: False

Input: Working=False , Holiday=False
Output: True

Input: Working=False , Holiday=True
Output: True


««« Send your solution to @hbabureddy and will be added to our Github page »»»

««« Click here for the Solution »»»

🔥Ready to take this challenge? 🔥

#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Forwarded from Python Questions
x = 100
y = 200
print(x and y) #Explain Y do you think so?
Anonymous Quiz
10%
100
23%
200
19%
300
48%
Error
Forwarded from Python Questions
What does ~~~~~7 evaluate to?
Anonymous Quiz
24%
7
4%
8
35%
-7
9%
-8
28%
Error