Image

Python is a cross-platform, object-oriented programming language, created in 1991. It allows to create, among other things, Web applications, softwares and scripts system.

BEGINNER

⇒ Code Examples

→ You must be bilingual (Fr/En). Code examples are in English.

→ Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must go over 30 to 40 pages per level, before moving on to the next step...

→ In order to evaluate your codes, click on the icon on the left at the bottom of the page (gears), then choose a compiler from the list that will be open in another tab. Finally, test your work.

NOW REPRODUCE AND IMMERSE YOURSELF!

C 0001 - Hello World !
Copy this code (do not copy and paste!). Be careful with the indentation!

print("Hello World!")
C 0002 - Variables
Copy this code (do not copy and paste!). Be careful with the indentation!

var_1 = "Bonjour"
var_2 = "Personnes"

print(var_1)
print(var_2)
C 0003 - Numbers Types
Copy this code (do not copy and paste!). Be careful with the indentation!

x = 6
y = 645948945264546254
z = -6987

print(type(x))
print(type(y))
print(type(z))
C 0004 - Numbers Types
Copy this code (do not copy and paste!). Be careful with the indentation!

x = 12
y = 1154895445532
z = -46

print(type(x))
print(type(y))
print(type(z))
C 0005 - Variables
Copy this code (do not copy and paste!). Be careful with the indentation!

var_1 = "Hello"
var_2 = "People"
var_3 = "Age"
var_4 = "Country"

print(var_1)
print(var_2)
print(var_3)
print(var_4)
C 0006 - Variables
Copy this code (do not copy and paste!). Be careful with the indentation!

var_1 = "Hello"
var_2 = "People"
var_3 = "Age"
var_4 = "Country"
var_5 = "Skills"
var_6 = "Languages"


print(var_1)
print(var_2)
print(var_3)
print(var_4)
print(var_5)
print(var_6)
C 0007 - Numbers Types
Copy this code (do not copy and paste!). Be careful with the indentation!

x = 8887
y = 0.56654896
z = -58

print(type(x))
print(type(y))
print(type(z))
C 0008 - Numbers Types
Copy this code (do not copy and paste!). Be careful with the indentation!

x = 8887
y = 0.56654896
z = 4j

print(type(x))
print(type(y))
print(type(z))
Image

CHOOSE YOUR COMPILER

Reproduce this code, choosing one of the compilers below (don't copy and paste! It would be too easy). They all have the same function, just choose one according to your preferences.

When copying your code, replace the existing (default) code already in the compiler with your own.

Warning! For some of these compilers, you must choose the programming language yourself from the menu that is then offered. Of course, don't forget to click on RUN!

Code

Recent versions

Frameworks

Tools/Methodologies

Test

Info+

» Creation date: 1991
* Created by Guido van Rossum
* Developed by Python Software Foundation
* Influenced by Java
* Cross-platform
* Free license (Python Software Foundation License)

News

The comments you leave us are systematically subject to rigorous moderation. Incivility and slander, threats, intimidation of all kinds, more generally all gratuitous verbal violence, or the dissemination of unverified information... are not tolerated. We also reserve the right to publish only comments which effectively advance the debate and allow a better understanding of the subject covered by the article presented on this page (as well as all its ramifications) and this, whatever its overall content.

Image

Fond of Code TM © ®
All rights reserved - Protected Trademark/Logo (INPI)

Legal structures based in
Nice - FRANCE

Montreal - Canada
By appointment...

SIRET: 41138921600028 (France)
Inc. : 661515-5 (Canada, Qc.)
Official resumption in France: March 2025
Implementation: July 2024
Launch of activity: 1996 (Europe and North America)
New version of the site: April 2025

Image
Image