Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Drag to reposition
Python Questions
I have this python code. When this code is run, I get an error for the second function call with a single argument. In this context, what are required arguments of a function in python?
Does python allow function arguments to have default values? Does the argument gets its default value if the function is called without the argument?
Are some characters other than alphabets, numbers and underscores allowed in python names or python identifiers? If yes, what are those characters?
How do I use the unittest module to test if a function throws an exception or not? How do I test if a function involving addition of an integer and a string throw an exception or not?
It is found that if python code is run normally and then if it is run in a python function, it runs faster in the latter case. I want to know why python code runs faster in a function.
What are the basic scoping rules for python variables? How do these rules apply to various scopes like the local scope, built in scope, global scope and so on?
I like to run a python function using the command line in Eclipse, just like running code from the normal Python Shell. How do I do that?
I have this code where an employee class and employee function have been created.How to use sqlite3 to store and manipulate data through a python function?
I have a python dictionary as followsHow do I return this dictionary from a python function as a json obect?
I have a string with tabs like this 'replace      tabs in       this string’ How do I replace the tabs in this string with multiple spaces in python?
I have a dictionary as follows How do I pass above dictionary as an argument to a python function?
I have a python function defined with multiple arguments as follows: How do I execute this function at a terminal?
I have a function f() and a lambda function lambda x:1 as follows Are these functions or all functions hashable?
loader
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.