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
What is output of following code?
x = (5, 7)
x[0] +=3
Anonymous Quiz
4%
7
37%
(8,7)
26%
Type Error
23%
Syntax Error
10%
(5,7), nothing changes
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
———»»» Python CheetSheet «««———
Forwarded from Python Questions
Which operator is right-associative among these?
Anonymous Quiz
25%
+
17%
*
43%
=
15%
%
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 Questions
In Python, functions can also have attributes and methods.
Anonymous Quiz
11%
Only Attributes
7%
Only Methods
79%
Both Attribures & Methods
3%
None
Forwarded from Python Questions
How can we check whether the object is instance of class or not.
For example, how to check if an object O which is instance of class C.
Anonymous Quiz
29%
C.isinstance(O)
40%
O.isinstance(C)
24%
isinstance(O,C)
7%
isinstance(C,O)
Forwarded from Python Questions
Answer
TypeError − ‘tuple’ object does not support item assignment because a tuple is immutable.
Forwarded from Python Questions
def foo(x = 10, y = 15):
return(x + y, x - y)
x, y = foo(y = 20, x = 15) print(x, y) #What is the output of the following code?
Anonymous Quiz
33%
Error - arguments order
49%
35 -5
13%
35 30
5%
30 30
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