Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency
Q
?
A -
Informatica
search
Login
Remember
Register
New Activity
Questions
Unanswered
Tags
Categories
Users
Course
News
FAQs
Do you need help?
Ask a Question
Notice Board
Situazione finale voti HW
Eserciziario Python
WTF Python!
Exams
Test
Grades
Attachments
Esame 6-11-19
check
RECUPERO Homework 1
link
RECUPERO Homework 2
link
RECUPERO Homework 3
link
RECUPERO Homework 4
link
Esame 19-9-19
check
link
Esame 16-7-19
check
link
Esame 24-6-19
check
link
Esame 10-4-19
check
link
Esame 31-1-19
check
link
Esame 8-1-19
check
link
Homework 4
link
Homework 3
check
link
Homework 2
check
link
Homework 1
check
link
1.162
questions
1.988
answers
3.710
comments
591
users
Related questions
esercizi lezione 3
Valutazione esercizi homework
Bonus homework 3
Most popular tags
esercizio3
homework3
es3
homework
es2
hw3
homework1
es1
homework4
esercizio1
homework2
esercizio2
avvisi
hw4
peer-assessment
hw2bis
python
hw4bis
problema
hw3bis
prova-di-esame
homework-di-recupero
hw2
voti
esame
test
ricorsione
consegna
hw1bis
tempi
homework2bis
aiuto
errore
librerie
dizionari
scadenze
attore
feedback
consigli
risultati
liste
research
oggetti
esercizio
metodi
program_03
bonus
efficienza
ricalcolo-classifica
leggibilità
Categories
Announcements
(13)
Intro. to Programming and Lab AA22-23 (Latina)
(14)
Programming AY20-21
(123)
Programming AY21-22
(205)
Programming AY22-23
(296)
Programming AY23-24
(182)
Fondamenti di programmazione AA18-19
(1.2k)
Info sul corso e sugli esami
(278)
Homework
(650)
Programmare in python
(31)
Avvisi
(65)
Homework di recupero
(138)
Fondamenti di Programmazione AA19-20
(436)
Fondamenti di Programmazione AA20-21
(709)
Fondamenti di programmazione AA21-22
(366)
Fondamenti di programmazione AA22-23
(564)
Fondamenti di programmazione AA23-24
(350)
Other
(26)
Anni precedenti
(784)
Architetture degli elaboratori AA20-21
(3)
BUG BOUNTY / IMPROVEMENTS
(4)
homework 3 esercizi
e
el_libregome
(870 points)
11
35
43
asked
Dec 11, 2018
in
Info sul corso e sugli esami
by
el_libregome
(
870
points)
scusate, cosa indica __name__==__main__?
grazie mille
207
views
closed
4
2
Answers
Best answer
_andrea_
(45670 points)
13
42
297
answered
Dec 11, 2018
by
_andrea_
(
45.7k
points)
selected
Dec 11, 2018
by
el_libregome
Le istruzioni che metti indentate lì sotto vengono eseguite solo se lanci direttamente il programma, e non quando viene importato dal test. Se non devi testare il programma in quel modo puoi anche toglierlo
1
comment
e
el_libregome
(870 points)
11
35
43
commented
Dec 11, 2018
by
el_libregome
(
870
points)
ah okay perfetto
grazie
Please
log in
or
register
to add a comment.
alessioclemente
(19640 points)
19
67
153
answered
Dec 11, 2018
by
alessioclemente
(
19.6k
points)
Serve per testare il nostro programma senza che vada ad intaccare i test del professore. Quando viene effettuato l'import del programma, se non scriviamo questo controllo, il test esegurà anche le istruzioni al suo interno, dando quindi problemi
2
comment
Please
log in
or
register
to add a comment.