The command line is a big part of using and understanding programming in Python. In this article, we will cover the command line parameters argv and argc - their origin and how you can use them....
Complete Guide To List Array Slice in Python 3
Managing lists (or arrays as known in other languages) in python is a common task where you often need to take a section from the list - e.g. a slice of the list. This is where slice() can be used...
Write Multiple JSON Objects To A File In Python 3
Whether you have experience in coding or you are just starting to learn how to code, you must have heard of JSON data files, and it's commonly used in coding that you found it very common. It's a...
How to remove files older than 7 days using python script
In this tutorial, we are going to learn about how to automate the process of removing files in a specific folder using python. We are going to use different packages but mainly our programming logic...
How to Read And Update Smartsheets With Python 3
Smartsheet is a cloud-based management tool used by over 7000 companies which include Fortune 500 companies like Netflix. This system helps the user share documents, assign tasks, and much more....
How To Print String in Color In Python 3
Python offers an option to print strings in color so that information in the console can be much easier to comprehend. This can be incredible useful when reading long log files, seeing console...
How To Decode And Encode In Base64 In Python 3
Are you working with an application that needs to transmit and store the binary data over to a network that can only handle only textual form of data? Well then encoding your binary data to Base64...
How To Convert Bytes To String And String To Bytes In Python 3
One of the most important features that have been introduced in Python3 is that the string type is now Unicode and there is a significant difference between text and binary data. When a computer...
How To Format Strings With Padding In Python3
Python3 includes data type string. Strings in python are surrounded by single or double quotations. For example, ‘string’ and “string” are the same. String formatting is an important concept in...
How To Create HTML Forms using Jinja2
Jinja2 is a templating engine designed for Python which can also be used with the famous Python web frameworks i.e Django and Flask. Jinja is inspired by the Django Templating Language (DTL) and it...