If you use list frequently in your python code, then you may have come across a situation, where you need to convert all elements of List to string. In this post, we will see two approaches to do that. First, we will convert the entire list to a string so that it will become a […]
Python Scripting
How To Send Email In Python Using SMTPLIB
In this script, we will see how to send emails in Python using the SMTPLIB library. SMTPLIB is a popular python library that is useful to send email via script. You do not have to install it, because the library comes by default. In the below python script we use Gmail for the demo, but […]
Python Script For Login Multiple Server
This post will see how to write a python script for login multiple Unix servers and execute a command. Additionally, the python script is going to save the output of that command in a text file. Automate Boring Stuff With Python Overview of Python Script For Login Multiple Unix Server Before writing any scripts, it […]
How to Convert Python Scripts To Binary Files (.exe)
In this post, we will see how we can convert python scripts to binary files. In a more pythonic way how to convert .py file to .exe file. But first, lets understand why there is a need of binary files. Automate Boring Stuff With Python Merits of Binary Files The binary file can be executed […]
How To Read Write and Modify Files In Python Script
In this post, we will see how to read, write and modify files in python script. We can open a file using python script, then we will write some content in the file, and then save it using python script. This is also called as file handling in python script. File handling in python deals […]