
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Gireesha Devara has Published 248 Articles

Gireesha Devara
734 Views
By using the dict() method in Python, we can create a dictionary with the list comprehension. Following is the syntax of dict() method- dict(**kwarg) Keyword arguments. We can pass one or more keyword arguments. If no keyword argument is passed, then the dict() method will create an empty dictionary ... Read More

Gireesha Devara
5K+ Views
Converting Python String into TupleWe can convert a Python string into tuples by simply mentioning a comma (, ) after the string. This will treat the string as a single element to the tuple. Example Here our string variable “s” is treated as one item in the tuple, which ... Read More

Gireesha Devara
1K+ Views
By using the eval() function in Python, we can evaluate a string and return a Python object. The eval() is a Python built-in function that evaluates a string argument by parsing the string as a code expression. eval(expression[, globals[, locals]]) Evaluating a String with Arithmetic Expression? If we ... Read More

Gireesha Devara
750 Views
Python is being updated regularly with new features and support. Starting from 1994 to the current release, there have been lots of updates in Python versions.Using Python standard libraries like sys or platform modules, we can get the version information of Python that is actually running on our script. In ... Read More

Gireesha Devara
8K+ Views
To convert a string represented dictionary to an original dictionary, we can use built-in functions like eval(), json.load(), and ast.literal_eval(). Initially, we must ensure that the string contains a valid representation of the dictionary. Using the eval() function The eval() is a Python built-In function that takes a string argument, parses ... Read More

Gireesha Devara
834 Views
In Python, using a for loop is common to iterate a single data structure like a list, but if we need to iterate two/multiple lists in parallel, we need to use the range() function. Iterating two Lists Using for Loop Assuming that both lists have the same length, here we are ... Read More

Gireesha Devara
11K+ Views
A tuple is a collection of objects that is ordered and immutable. Tuples are sequences, just like lists. The differences between tuples and lists are that tuples cannot be changed, unlike lists, and tuples use parentheses, whereas lists use square brackets. Converting a Python tuple to a StringThere are three different ... Read More

Gireesha Devara
2K+ Views
The list in Python is a sequence data type that is used to store various types of data. A list is created by placing each data element inside square brackets "[]" and these are separated by commas. In Python, the assignment operator doesn’t create a new object; rather, it gives ... Read More

Gireesha Devara
1K+ Views
Flattening a shallow list means converting a nested list into a simple, single-dimensional list. In other words, converting a multidimensional list into a one-dimensional list. Flattening can be performed using different techniques like nested for loops, list comprehensions, list concatenation, and using built-in functions. In this article, we will discuss ... Read More

Gireesha Devara
1K+ Views
In Python, lists are one of the built-in data structures that are used to store collections of data. The lists are mutable, which means we can modify their elements after they are created.Updating Python List Elements You can update single or multiple list elements using the append, insert, extend, remove, ... Read More