Python Language

Image

Python is a cross-platform, object-oriented programming language (♦ See DEF.), created in 1991.

It allows to create, among other things, Web applications, softwares  and scripts system.

Code Examples

We start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be.

C 0001 - Hello World !

Say hello...

print("Hello World!")

Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

C 0002 - Variables

Use variables...

var_1 = "Hello"
var_2 = "People"

print(var_1)
print(var_2)

Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

C 0003 - Numbers

Use the numbers...

a = 33
b = 48

if b > a:
  print("b est plus grand que a")

Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

C 0004 - Exit from a loop

Exit a loop, once the condition is required...
Watch out for indentation!

a = 1
while a < 6:
  print(a)
  if (a == 4):
    break
  a+= 1

Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

Info+

Creation
» Creation date: 1991
* Created by Guido van Rossum
* Developed by Python Software Foundation

* Influenced by Java
* Cross-platform
* Free license (Python Software Foundation License)

Practical cases

In order to train you, we add small programs every week to this section in order to keep you up to speed.

CASE 1

BASIC LEVEL

Print a selection according to age

This little program will allow you to choose, according to the variables you have added yourself, the usernames to print.

TRY

CASE 2

INTERMEDIATE LEVEL

Create a database (customers)

This little kit will allow you to design a database to manage a basic customer portfolio.

TRY

CASE 3

EXPERT LEVEL

Develop a news App.

Design and develop an application with Android Studio, managing content hosted by a resource website on a classic Web server (Hybrid App.).

TRY
2021 (C) Fond of Code tm (protected trademark) - Reflex001 / Diego Piccini (da Todi).
All rights reserved. Protected editorial content (www.theethicalweb.com).

About Us...

About Us...
Reflex001

Web
Programming
Development

Main Topics

Main Topics

Legal/Support

Legal/Support
Image