Hi Folks! In certain situations, you need to swap the variables in python scripts. So, let’s say a=5, and b=10. After swapping a=10 and b=5. Before Swapping:a=5b=10 After swapping:a=10b=5 Now I’ll show you few interesting methods to swap two variables…
Python
Here we discuss about Python programming!
Now-a-days we do not have enough time to waste. We all are busy! And we required some automation tools to reduce the work load and save the time. Python is a good and simple language for this purpose.
Index
- Introduction to Python – Say Hello World!
- The module subprocess in Python
- More about the Python module subprocess and subprocess classes
- Sample scripts using Python for Linux SysAdmins – subprocess.Popen
- Variables and Types – Python
- What is isinstance function in Python?
- How to concatenate integer with string variable in Python?
- Sequences and Lists – Array concept in Python
- More about sequences and Lists – Array concept in Python part 2
- How to convert a list to string in python?
- A quick comparison – Lists, Tuples and Dictionary in Python!
How to convert or concatenate integer with string variable in Python?
Convert int to str. Simple way to concatenate integer and string variables – Python. In some cases, you have to concatenate integer variables to string variables in your Python script. You can not do this by simply using the (+) sign. In…
Everything You Should Know and Understand About Numpy
Numpy is described as a library for the programming language of Python. It adds a lot of supports for matrices, arrays that are multi-dimensional along with a big collection of functions that are high level and can operate on all…
What is isinstance function in Python?
This is a very important fn in Python programming. It returns a Boolean stating whether the object is an instance or subclass of another object. In this post, I am going to explain about Python function “isinstance” and its different…
Introduction to Python – Say Hello World!
Why this category? Now-a-days we do not have much time to spend for repeated works. We all are busy with learning new things. And we required some automation tools to reduce the work load and save the time. Python is…
A quick comparison – Lists, Tuples and Dictionary in Python!
Why this post? These three words are very common in Python language. Everyone, who loves Python should have a clean idea on Lists, Tuples and Dictionaries in Python. All of them are used to manage sequences in Python. Python has…
How to convert a list to string in python?
Sometimes, we need a combined string like output or return from our Python code. Is it possible to obtain a combined string like output from a list? Sure, everything is possible in Python. The only thing you have to do…