Skip to main content

Python

A collection of 10 posts

Python multiline comments
Python

Add Multiline Comments in Python

Python does not support multiline comments by default. However, you can use the docstring feature to achieve that.

· Prakhar Tiwari

Clear PIP cache
Tips

Clearing Pip Cache

Cleaning Pip cache helps you in troubleshooting and getting fresh Python packages.

· Sagar Sharma

Run Python scripts in Linux
Python

Run Python Scripts in Linux Command Line

This quick tip shows how to run Python programs from the Linux command line.

· Pratham Patel

While loop in Python
Python

5 Examples of Python While Loop

Wondering how to use while loop in Python? These 5 code snippets show how while loop is used in Python scripts.

· Ankush Das

Print in Python
Python

Python Basics: How To Print in Python?

See how to print something in python. Also learn how to avoid some common mistakes while printing in Python.

· Ankush Das

Check is string contains substring in Python
Python

Check if String Contains a Substring in Python

In this Python tutorial, you'll learn various methods to check for substring inside a string with proper code examples.

· Ankush Das

For loop in Python
Python

For Loop in Python Explained With Practical Examples

Learn the concept of for loop in Python with these practical examples.

· Ankush Das

Free Python learning resources
Resources

Learn Python For Free With These Courses and eBooks

Wondering how to learn Python for free? We list some of the best Python courses and books that you can use to learn Python online without spending any money.

· Ankush Das

Python
Python

3 Ways to Write a List to a File in Python

This quick tutorial demonstrates three methods to write a list to a file in Python scripting language.

· Abhishek Prakash

Run Linux shell commands in Python
Python

Executing Shell Commands with Python

A sysadmin would need to execute shell commands in Python scripts. Learn how to execute shell commands in Python.

· Abhishek Prakash