Python Projects
Open in 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
Show moreThe country is not specifiedThe category is not specified
7 291
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
7 291
#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
7 291
#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
7 291
#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
7 291
#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
7 291
#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
7 291
***
📝 Solution for the Task: 0004 📌
You can find the solution for this on our github page .... CLICK HERE
7 291
#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
7 291
#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
7 291
#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
7 291
Join our group to discuss projects and the future initiatives which we are planning on.... your views are important...
let us know ... Tell us what kind of projects / practice code do you like to be posted
👇🏼
@python_programmers_club
7 291
#PracticeCode: 0015
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
You have a pet cat and whenever it cries between time 7 to 20, you are safe.
The input has to be given in whether the cat is crying(input "True") or not(input "False") and time in form of "Hour" in range 0 to 23.
So create a program to check whether you are safe(output "True") or not(output "False").
example:
input - ("True",8)
output - True
input - ("Flase",14)
output - False
input - ("True",4)
output - False
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
7 291
#PracticeCode: 0014
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
Write a program which inputs two numbers A and B.
If A is smaller then B than print absolue differnce else print double of their absolute difference.
example:
input - A=10, B=12
output - 2
input - A=10, B=5
output - 10
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
7 291
#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
7 291
#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
7 291
#PracticeCode: 0011
🎯 FORWARD IF YOU LIKE IT 🎯
Task:
There is a pair of twin children , Ash and Bob, and both of them has parameters a_happy and b_happy.
It becomes too confusing to identify them when they in are same mood.
So you have to create a program to give result False when they are in same mood and True when not.
example:
children_mood(a_happy=True, b_happy=True) → False
children_mood(a_happy=False, b_happy=False) → False
children_mood(a_happy=True, b_happy=False) → 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
7 291
***
📝 Solution for the Task: 0003 📌
You can find the solution for this on our github page .... CLICK HERE
7 291
***
📝 Solution for the Task: 0002 📌
You can find the solution for this on our github page .... CLICK HERE
7 291
#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
7 291
#PracticeCode: 0009
🎯 FORWARD IF YOU LIKE IT 🎯
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
