python.prg code example

Example 1: when was python created

December 1989
Python was conceived in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language (itself inspired by SETL), capable of exception handling and interfacing with the Amoeba operating system. Its implementation began in December 1989.

Example 2: python

from _future_ import print_function
import matplotlib.pyplot as plt
import os
import sys
import re
import gc

# Selection of features following "Writing mathematical expresion"tutorial
mathtext_tiles = {
    0: "Header demo"
    1: "Subscripts and superscripts"
    2: "Fraction ,bionomals and stacked numbers"
    3: "radicals"
    4: "Fonts"
    5: "Accents"
    6: "Greek Herbew"
    7: "Delimeters, functions and symbols"}
n_lines = len(mathtext_titles)

Example 3: python

class PrintHello:
  def printnow(self, message):
    self.message = message
    print(message)
 
printer = PrintHello()
printer.printnow("hey")
#completely useless

Example 4: python

print("Download Right Now or else Guido Gonna one punch you")

Example 5: python

# Action Statements

print('hello world')

# Varables

x = 12

y = input("Prompt")

n = True

if n:
	# Some Stuff in here
    
def N(Terms):
    # Some Stuff in here

N(x)

Example 6: python

Learn python now !