Overview In this post, I will write about While loops in Python. If you have read earlier posts For and While Loops you will probably recognize … [Read more...] about Using While Loop in Python
How to import modules in Python
Modules Python modules makes the programming a lot easier. It's basically a file that consist of already written code. When Python imports a module, … [Read more...] about How to import modules in Python
Errors and Exceptions in Python
Errors and Exceptions In Python, there are two kinds of errors: syntax errors and exceptions. This post will describe what those errors are. Upcoming … [Read more...] about Errors and Exceptions in Python
Guessing Game Implementation in Python
Writing simple games in python is a great way to practice conditional statements and loops. In this article, we will implement a guessing game in … [Read more...] about Guessing Game Implementation in Python
How to use slicing in Python
Slicing in Python When you want to extract part of a string, or some part of a list, you use a slice The first character in string x would be x[0] … [Read more...] about How to use slicing in Python
Conditional statements in Python
Conditional statements In programming, very often we want to check the conditions and change the behavior of the program. How to use Conditional … [Read more...] about Conditional statements in Python
Using the Python Interpreter
Python interpreter The Python interpreter is usually installed in /usr/local/bin/python on machines where it is available; Putting /usr/local/bin in … [Read more...] about Using the Python Interpreter
OS Module : Overview
OS Module The OS module in Python provides a way of using operating system dependent functionality. The os module also offers functions to find … [Read more...] about OS Module : Overview
OS Module : os.stat ( )
OS Stat To perform a stat system call on the given path, we can use the os.stat() functionof OS. First import the the os module and then simply … [Read more...] about OS Module : os.stat ( )
Strip Characters in Python
Strip Methods Python strings have the strip(), lstrip(), rstrip() methods for removing any character from both ends of a string. If the characters to … [Read more...] about Strip Characters in Python