Python Resources - Basic Python, ML, DataScience, BigData
2.41K 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 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
#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
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
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 Projects
#PracticeCode: 0012
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program which returns sum of given two input values but if given
values are same , than return double of their sum.

Example:

input = (1, 2)
output → 3

input = (3, 2)
output → 5

input = (2, 2)
output → 8

««« 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 Projects
#PracticeCode: 0013
🎯 CHALLENGE YOUR FRIENDS ————— FORWARD IT 🎯

Task:
We all use the function to convert a string to a number. But what if that was not available.
This task is to write your own convert to string function.
• A string can contain alphanumeric characters, but the function should be able to pick the last set of digits.
• It should only convert the string to integers and if decimals are provided, they should be rounded off to a nearest integer.
• The range of this number should be between [-2 ^ 31, 2 ^ 31 - 1]. If the result is outside this range, display the border value.

Example:
a) Input: "25" --- Output: 25
b) Input: "25.55" --- Output: 26
c) Input: "25Hello234.56" --- Output: 235

««« 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 #algorithm
Forwarded from Python Projects
#PracticeCode: 0016
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program where you have to print first 3 letters of a the given word 3 times.
If the given input is less then 3 tham print it 3 times as well.

input - 'Python'
output - 'PytPytPyt'

input - 'Ad'
output - 'AdAdAd'

GOOD LUCK!

««« 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 Projects
#PracticeCode: 0017
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which the given string is printed with first and last character
exchanged.
NOTE: You don't have to reverse whole string!

example:
input - "Python"
output - "nythoP"

GOOD LUCK!


««« 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 Projects
#PracticeCode: 0018
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program which takes input as two arguments where one will be string and the other a positve int.
Now you have to print output first 3 charachters of the given string the times the value is given as input.

sample:
input - ("Chocolate", 2)
output - 'ChoCho'

input - ("Python",3)
output - 'PytPytPyt'

GOOD LUCK!


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

««« Click here for the Solution »»»

(https://github.com/ignani/LearnPython/blob/master/Tasks/0017.ipynb)🔥Ready to take this challenge? 🔥

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

Task:
You have to create a program in which two strings is a given as input and you have to give output number of strings getting matched in both strings.

sample:

input - "Abc","Abc"
ouput - 2

input - "abc","axc"
output - 0

GOOD LUCK!


««« 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 Projects
#PracticeCode: 0020
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which two input has to be taken 1st bracket string
with size 4 two open and two close like (()) , {{}} etc.. and 2nd input ,a word.
Now you have to print the word enclosing it within given brackets.

Sample Run :

input - '(())' , 'Python'
output - '((Python))'

NOTE : You to make this program without using loops.

GOOD LUCK!

««« 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 Projects
#PracticeCode: 0021
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which a list of numbers are given and you to print
the list shifted left by one step.

Sample:

input - [1,2,3,4]
output - [2,3,4,1]

NOTE :- Without loop!

GOOD LUCK!


««« 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 Projects
#PracticeCode: 0022
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
Create a program in which a list is given as input and you have to find max number
and change each element of list into max element.

input - [1,2,3,4,5]
output - [5,5,5,5,5]

NOTE :- Without Loop.

GOOD LUCK!

««« 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 Projects
#PracticeCode: 0023
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which a list is given as input and you have to print the sum of 1st , last and mid element of the
list.
If the list count is even, then select the 1st, last and average of 2 elements from the middle have to be considered.

sample :-

input - [1,2,3,4,5]
output - 9

NOTE :- Without Loop.

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 #collections #dict #algorithm
👍1
Forwarded from Python Projects
#PracticeCode: 0024
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You and your date are trying to get a table at a restaurant.
The parameter "you" is the stylishness of your clothes, in the range 0..10, and "date" is the stylishness of your date's clothes.
The result getting the table is encoded as an int value with
- 0=no,
- 1=maybe,
- 2=yes.

If either of you is very stylish, 8 or more, then the result is 2 (yes). With the exception that if either of you has style of 2 or less, then the result is 0 (no). Otherwise the result is 1 (maybe).

Sample :-
input → you = 5 , date = 10
output → 2

input → you = 5 , date = 2
output → 0

input → you = 5 , date = 5
output → 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 #collections #dict #algorithm