ch
Feedback
Python Questions

Python Questions

前往频道在 Telegram

Tasks for Beginners, Interview Questions, Regular expressions, simple coding problems, Quiz etc. Useful Resources — »»» @python_resources_iGnani Projects for Practice — »»» @python_projects_repository Discussion Forum — »»» @python_programmers_club

显示更多
未指定国家未指定类别
5 285
订阅者
无数据24 小时
无数据7
无数据30
帖子存档
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 voting

In Python, functions can also have attributes and methods.
Anonymous voting

Which operator is right-associative among these?
Anonymous voting

What is output of following code? x = (5, 7) x[0] +=3
Anonymous voting

How many libraries can be imported in one project?
Anonymous voting

Which of the following is correct about Python?
Anonymous voting

What is output of the following code? a = ['he', 'she', 'we'] ' '.join(a)
Anonymous voting

Which function is to be used to print to console?
Anonymous voting

What is the optput of the expression 1 + 2 ** 3 * 4 Explain why?
Anonymous voting

Given a function that does not return any value, what value is shown when executed at the shell?
Anonymous voting

________ is a simple but incomplete version of a function
Anonymous voting

x = "Hello World!" Which of the following is incorrect & Why?
Anonymous voting

#answer to the question 👆is ————-»»» b) hello world! the keyword argument sep by default is set to a single space " ", hence it add's a space inbetween the two words. 50% have answered it correct.

#answer to the question 👆is ————-»»» class float Since the result of 1/2 is 0.5, which is a float. 65% got it correct.

What does ~~~~~7 evaluate to?
Anonymous voting

x = 100 y = 200 print(x and y) #Explain Y do you think so?
Anonymous voting

. a = 1 b = 2 Swap the values without using an additional variable. #python #practiceCode #samples #interviewQuestions

* name = 'ppy!' Write code to insert the letter 'a' in-between each letter to form the word 'papaya!' #python #practiceCode #samples #interviewQuestions #strings #list

# Sequence Puzzle [30, 9, 40, 50, 91, 142, 234, ?] Find the next value?
Anonymous voting

* myList = [1, 2, 3, 4, 2, 2, 3, 1, 4, 4, 4,5,5,6,7,6,5] A) Write a program to get the value that appears more number of times B) When there is a tie, then get the number which is the smallest of them #python #practiceCode #samples #interviewQuestions #numbers #list