Commenti in Python

Nel linguaggio Python è possibile lasciare commenti. Possono essere su una riga o su più righe.

Un commento su una riga può essere creato con il simbolo del cancelletto #:

python# test

E per lasciare un commento su più righe, è necessario racchiuderlo tra triple virgolette:

python"""
  test1
  test2
  test3
"""
Задание 1

Commenta la seguente riga:

pythontest = 'abc'
Задание 2

Supponi di avere le seguenti righe:

pythontest1 = 'abc'
test2 = '123'
test3 = 123

Racchiudile in un commento su più righe.