Saturday, October 19, 2019

Python Identifier and Keywords

Python Keywords and Identifier Tech Justice
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 to define the syntax and structure of the Python language. In Python, keywords are case sensitive. There are 33 keywords in...

List of Keywords in Python

List of Keywords in Python Tech Justice
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 or some might be removed. You can always get the list of keywords in your current version by typing the...

Building an FTP Password Cracker In Python

python tech justice
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 many of the tasks we need to do as hackers much simpler and faster. Dictionaries In Python, dictionaries act like associative arrays...

Verify Age With PHP DateTime

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 check a person is of a given age, including leap years. Buy using the PHP DateTime class, php is able...

Simple Encryption and Decryption Python

Simple Encryption and Decryption tech justice
Simple example of encryption text simple Simple example of┬ádecryption text simple   source,source,edu

Search Twitter’s Tweeted Tweet By Python

Search Twitter's Tweeted Tweet - tech justice
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 can be accessed by any client, but all other Twitter methods require authentication. About this script The program is well documented and...

Replace String in Python

Replace String in Python tech justice
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 Python, everything is an object - including strings. This includes the str object. Luckily, Python's string module comes with a...

Get the Geo Location of an IP Address Python

python Get the Geo Location of an IP Address Python tech justice.jpg
Geolocate an IP address based on input from the user. For this script, we will be using a bunch of Python modules to accomplish this. First we make a check to see that the user puts in enough arguments, and if not, they 'usage'...

Make Simple Calculator Program in Python

python-calculator tech justice
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 if...elif...else branching is used to execute a particular section. User-defined functions add(), subtract(), multiply() and divide() evaluate respective operations. Source Code Output  

Download a complete Website using Python in 4 steps

python tech justice
One of the most viral news circulating on the internet is the Python Web Crawler, that crawls a website you ask it to and it crawls the whole website and all the links anddownloads all the data for you i.e the whole Website. How to...