21.Define docstring in Python. A string literal occurring as the first statement (like a comment) in any module, class, function or method is referred as docstring in Python. This kind …
Python
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Freshers part-2
by Sby S11.What are the disadvantages of using Python? 1. Python is slow as compared to other programming languages. Although, this slow pace doesn’t matter much, at times, we need other language …
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Freshers part-1
by Sby S1. What is Python? Python is an object oriented and open-source programming language, which supports structured and functional built-in data structures. With a placid and easy-to -understand syntax, Python allows …
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Graduates Part-5
by Sby S41.How will you convert a string to a set in python? set(s) − Converts s to a set.
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Graduates Part-4
by Sby S31.How will you get all the keys from the dictionary? Using dictionary.keys() function, we can get all the keys from the dictionary object. print dict.keys() # Prints all the keys
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Graduates Part-3
by Sby S21.What are tuples in Python? A tuple is another sequence data type that is similar to the list. A tuple consists of a number of values separated by commas. Unlike …
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Graduates Part-2
by Sby S11.What is the output of print str[2:5] if str = ‘Hello World!’? It will print characters starting from 3rd to 5th. Output would be llo.
- Interview Questions and AnswersPythonTechnical Interview Questions and Answers
Python Interview Questions and Answers For Graduates Part-1
by Sby S1.What is Python? Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use …