- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
5K+ Views
Python Functions are generally called using their name. However, you can also use strings to call functions. For that, use the locals() and globals(). Call functions using strings Example In this example, we will learn how to call two functions using strings − def demo1(): print('Demo Function ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
5K+ Views
The Hexadecimal and Octal are part of Numeric Types in Python. Let’s see how to specify them one by one. For hexadecimal type, add a preceding 0x. For example − 0x11 For Octal type (base 8), add a preceding 0 (zero). For example − 0O20 Hexadecimal Integers in ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
2K+ Views
A function in Python with another function as an argument or returns a function as an output is called the High order function. Let’s see the propertie − The function can be stored in a variable. The function can be passed as a parameter to another function. The high ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
1K+ Views
Scope of Variables in Python are of two types: local and global. Scope is defined as the accessibility of a variable in a region. Let us first understand both local and global scope before moving towards the rules. Local Scope Example This defines the local scope of a variable i.e. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
745 Views
To convert a string to a number, there are various ways. Let’s see them one by one. Convert a string to number using int() Example In this example, we will convert a string to a number using the int() method − # String to be converted myStr = "200" ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
113 Views
Resources for any programming language includes Video Courses, Notes as well as E-books. Here, I will list the best resources of Python. Python Official Documentation A lot of websites are providing Python resources, but the official documentation still works the best. Let’s see the resources provided by them. ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
123 Views
To return an empty object, the object() method is used in Python. This acts as a base for all the classes. Let’s see the syntax of object(). No parameter gets included − object() New properties or methods cannot be added to this object. This itself acts as a base ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
124 Views
Separate tuple and list data types are provided because both have different roles. Tuples are immutable, whereas lists are mutable. That means, Lists can be modified, whereas Tuple cannot. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
2K+ Views
To find the attributes of an object, use the getarr() method in Python. To check if an attribute exist or not, use the hasattr() method. Set an attribute using the setattr() method in Python. Access the attributes of an object Example To access the attributes of an object, we will ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
3K+ Views
We can sort a list by values from another list by setting up the 2nd list as index numbers for the values in the 1st List in sorted order. Sort a List by values from another list Example In this example, we will sort a list by values from another ... Read More