Python Identifier and Keywords
Keywords
Keywords are the reserved words in Python. We cannot use a keyword as variable name, function name or any other identifier. They are used...
List of Keywords in Python
List of Keywords in Python
Keywords in Python programming language
False
class
finally
is
return
None
continue
for
lambda
try
True
def
from
nonlocal
while
and
del
global
not
with
as
elif
if
or
yield
assert
else
import
pass
break
except
in
raise
The above keywords may get altered in different versions of Python. Some extra might get added...
Building an FTP Password Cracker In Python
Python is probably the most widely used scripting language for hackers. This is primarily because it has some built-in modules and libraries that make...
Verify Age With PHP DateTime
There are times when a site needs to check the age of a person, usually for legal reasons. This small script shows how to...
Simple Encryption and Decryption Python
Simple example of encryption text
simple encryption.py
# Sample Python/Pygame Programs
# http://simpson.edu/computer-science/
plain_text = "This is a test. ABC abc"
encrypted_text = ""
for c in plain_text:
...
Search Twitter’s Tweeted Tweet By Python
Overview
Twitter's API is REST-based and will return results as either XML or JSON, as well as both RSS and ATOM feed formats. Public timelines...
Replace String in Python
Often you'll have a string (str object), where you will want to modify the contents by replacing one piece of text with another. In...
Get the Geo Location of an IP Address Python
Geolocate an IP address based on input from the user. For this script, we will be using a bunch of Python modules to accomplish...
Make Simple Calculator Program in Python
In this program, we ask the user to choose the desired operation. Options 1,2,3 and 4 are valid. Two numbers are taken and an...
Download a complete Website using Python in 4 steps
One of the most viral news circulating on the internet is the Python Web Crawler, that crawls a website you ask it to and...