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: 0028
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which a list of numbers is given as input and you to print sum and difference of the maximum and minimum value of the list.

NOTE :- You don't have to use max() and min() inbuilt functions!.

Sample run :-
input → [10, 3, 5, 6]
output → 7

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

Task:
You have to create a program in which a list of numbers is given as input and you have to print the mean average of all the numbers leaving largest and smallest numbers. If the given list has more then one copy of largest or smallest number than just ignore one copy of that number.

Sample :-

input → [1,2,3,4,500]
output → 3

input → [1,1,6,8,3,10]
output → 4.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
Forwarded from Python Projects
#PracticeCode: 0030
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
A list of numbers is given as input. You have to create a program in which you have to print the sum of numbers which do not comes in section between 6 and 7.

Sample Run :-

input → [1,2,2,3]
output → 8

input → [1, 2, 2, 6, 99, 99, 7]
output → 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
Forwarded from Python Projects
#PracticeCode: 0031
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
You have to create a program in which two strings has to given as input. Now you to print True or "yes" if any one of the strings is present at the end or start of the other. Else print False or "No".

Sample Run :-

input → 'Hiabc' , 'abc'
output → True

NOTE :- It's should not be case sensitive.

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

Task:
An ATM machine has 2 denominations of currency notes , $10 & $50. Accept the number of currency notes available in the machine and the withdrawal amount. Than calculate if with the available denominations , whether a user can withdraw the amount or not.

Sample Run :-

input → $10 = 3 , &50 = 1 , W.A. = $80
output → True

input → $10 = 3 , $50 = 1 , W.A. = $90
output → False

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
Forwarded from Python Projects
#DataWrangling : Task: 0003 ——————————————————— Continued from 0002
🎯 »»»» FORWARD IF YOU LIKE IT «««« 🎯

Task:
The categories column contains the category and a list of sub-categories. Extract them into separate columns, with names as Category suffixed by a number depending on the hierarchy.
The level of hierarchy is not the same for all, you need to handle it.


Optional Tasks:
»» Clean up the newly created Categories columns by removing additional spaces. Try using regex.


📝 ———»»» Click here for the dataset ««« ———
««« Send your solution @hbabureddy and proper solutions will be added to our Github page »»»

🔥Ready to take this challenge? 🔥

««« Click here for the Solution »»»
#python #practiceCode #samples #DataWrangling #pandas
Forwarded from Python Projects
#PracticeCode: 0033
🎯 FORWARD IF YOU LIKE IT 🎯

Task:
Input a list of Numbers(int or float). You have to print their sum unless they are danger(13 to 19). Danger number counts as 0. Number 14 and 17 are exception, there not taken as danger numbers.

Sample Run :-

input → (4,16,9)
output → 29

input → (6,8,12,14)
output → 26

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

Task:
You have to create a program in which you have to take input in a temperature [ In Celsius, Fahrenheit or Kelvin anyone]. And convert it into other both types and print.

{C = 5/9*(F-32) , C = K - 273, where F is Fahrenheit , C is Celsius, K is Kelvin}

Sample run :-

input → 60°C
output → 140 Fahrenheit , 333 Kelvin

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
Forwarded from Python Projects
#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
Forwarded from Python Projects
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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
❤1
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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
Forwarded from Python Projects
#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