Infographics
Programming with basic Python commands

Python is one of the most popular programming languages. In this infographic we show you the key concepts so that you can take your first steps.

30 Apr 2025. 08:17
1 min. of reading
Published by
Imagen colaborador
Logo Acelera pyme
Acelera pyme

Términos de uso

You can use the resource for personal or informative use with attribution to the entity red.es following our terms of use.

Tags

  • SME maturity
    All
    Topic
    1. Competencias digitales
    Scope to digitize
    1. Support processes

Compartir infografía

Python is one of the most popular programming languages. In this infographic we show you the key concepts so that you can take your first steps.

Image
Programming with basic Python commands
  • Variables in Python

They store different types of data and are classified as follows: 

  1. int: integers (age = 37).
  2. float: numbers with decimals (weight = 68,47).
  3. str: text strings (surname = ‘Marrero Santana’).
  4. bool: indicates whether a value is true or false. They allow you to create logic and assign conditions to your code.

 

  • Basic commands
  1. print: displays a result on the screen.
  • print(“Hello World”)
  1. input(): allows you to request data from a user.
  • name = input (“What is your name”?)

          print(“Nice to meet you,” + name)

                      = Nice to meet you, name

  1. sorted(): sort the items in a list.
  • numbers = [5, 2, 8, 1]

          print(sorted(numbers))

                       = [1, 2, 5, 8]

 

Try these functions and jump into the world of programming!

¿Te ha gustado este contenido?
0
No votes have been submitted yet.