Last answered:

20 Oct 2022

Posted on:

20 Oct 2022

5

Resolved: Why do you use ";" some times?

Good morning. I just would like to know why sometimes you use the ";" symbol in the code. When do we have to use it? I thought that Python didn't require to use it at the end of the lines of code. Thank you

2 answers ( 1 marked as helpful)
Instructor
Posted on:

20 Oct 2022

1

Hey Alessandro,

Thank you for reaching out!

In Python, the semi-colon suppresses the output. In the lesson Random Dataset: Model Performance, it's used to suppress the text output that otherwise appears above the confusion matrix if the semi-colon is not there.

Kind regards,
365 Hristina

Posted on:

20 Oct 2022

0

Interesting, I didn't know it. Thank you!

Submit an answer