Computer

Python examples

Python is defined as the general purpose programming language which is oriented to objects, which can be used for web development.

Related Articles

Python is able to carry out some type of program that can be for Windows applications, network servers and web pages. This type of language can be interpreted easily, no code is needed to execute it. Currently it is a very common language thanks to the characteristics it has.

Python examples

  1. Print numbers from 1 to 100.

N = 1

P = 0

I = 0

  1. Print the numbers multiples of 3 that exist between 1 and 100.

N = 1

H = 0.

  1. Enter the values ​​A, B and C.

A = input first value.

B = input second value.

C = input third value.

N = 4

  1. Enter numbers by keyboard.

P = 0

Cp = 0

C = 0

N = 0

H = 0

H1 = input first number.

H3 = input second number.

  1. Enter number by keyboard and say if it is odd or even.

H = input enter a smaller number.

  1. Program that prints the odd numbers from 100 to unity and calculates their sum = 100

N = 100

H = 0

  1. Def multv (x, y, z): return 6 * x + 4 * y + 8 * z.
  2. Python 4.6.7 (v4 .6.7: 38-08 cee 69tel).
  3. X = 24-22

Y = hello.

Z: 5.43.

  1. D = (x: x ** 4 for x in range (6).

Show More

Leave a Reply

Your email address will not be published.

Back to top button