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
pagine di prenotazione
per le prove di recupero (per l'esame usate infostud)
bonus per la partecipazione
al forum Q2A
tabella generale dei voti
(da aggiornare)
Exams
Test
Grades
Attachments
homework 1
check
link
homework 2
check
link
homework 3
check
link
homework 4
check
link
homework 5
check
link
mastermind
check
torneo F1
check
link
16-1-18
check
link
23-1-18
check
link
23-1-18 recupero
check
link
15-2-18
check
link
15-2-18 recupero
check
link
16-3-18 recupero
check
link
18-4-18
check
link
19-6-18 recupero
check
link
19-6-18
check
link
12-7-18 recupero
check
link
12-7-18
check
link
19-9-19 recupero
check
link
19-9-18
check
link
698
questions
1.310
answers
2.187
comments
551
users
Related questions
numero max di righe file di testo
Qual è un buon risultato in termini di tempo?
trasformare la lista es.1 homework
Most popular tags
homework
python
homework4
avvisi
prova-di-recupero
prova-di-esame
grader
voti
problema
ricorsione
esecuzione
homework5
comprensione
velocità
homework3
f1
5
esercizio
homework2
valutazione
mastermind
risultati
esercizio3
grade
intricatezza
efficienza
liste
hw5
correttore
esercizio2
cartellino-rosso
program_01
upgrade
esercizio1
dizionari
es3
filejson
alberi
immagini
test
tempo
ciclo
es2
program_03
verbalizzazione
metodi
for
laboratori
programmazione
funzioni
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
(181)
Fondamenti di programmazione AA18-19
(1.2k)
Fondamenti di Programmazione AA19-20
(436)
Fondamenti di Programmazione AA20-21
(708)
Fondamenti di programmazione AA21-22
(366)
Fondamenti di programmazione AA22-23
(564)
Fondamenti di programmazione AA23-24
(346)
Other
(26)
Anni precedenti
(784)
Fondamenti di Programmazione AA17-18
(698)
Avvisi
(74)
Funzionamento Esami
(40)
Software usato
(8)
Programmare in Python
(80)
Funzionamento degli homework
(72)
Homework 1
(95)
Homework 2
(83)
Es1
(27)
Es2
(42)
Es3
(14)
Homework 3
(50)
Homework 4
(117)
Homework 5
(44)
Altri argomenti
(34)
Architettura degli elaboratori AA17-18
(86)
Architetture degli elaboratori AA20-21
(3)
BUG BOUNTY / IMPROVEMENTS
(4)
Trasformare file di testo in un insieme
G
Giacomozm
(1440 points)
19
59
68
asked
Oct 25, 2017
in
Es3
by
Giacomozm
(
1.4k
points)
closed
Nov 4, 2017
by
andrea.sterbini
Come faccio a convertire un file di testo in un' insieme da inserire poi in una funzione predefinita?
523
views
closed with the note:
deadline expired
homework
9
4
Answers
Neo
(6720 points)
7
27
37
answered
Oct 25, 2017
by
Neo
(
6.7k
points)
Utilizza la funzione set(nomevariabile)!
6
comment
Please
log in
or
register
to add a comment.
A
AlessioL98
(500 points)
1
7
14
answered
Oct 25, 2017
by
AlessioL98
(
500
points)
Apri il file in modalità lettura, e utilizza il comando var=nomefile.readlines() per "leggere" i singoli elementi. A questo punto utilizza il comando set(var) per inserirli in un insieme.
6
comment
G
Giacomozm
(1440 points)
19
59
68
commented
Oct 25, 2017
by
Giacomozm
(
1.4k
points)
però nella lista mi mette ogni elemento in formato 'elemento\n'
Please
log in
or
register
to add a comment.
andrea.sterbini
(207920 points)
750
1267
2373
answered
Oct 25, 2017
by
andrea.sterbini
(
208k
points)
In un insieme di cosa, esattamente? Di linee?
6
comment
G
Giacomozm
(1440 points)
19
59
68
commented
Oct 25, 2017
by
Giacomozm
(
1.4k
points)
si, senza però che mi salvi ogni elemento con \n alla fine
cristofer.valiante
(1690 points)
3
8
21
commented
Oct 25, 2017
by
cristofer.valiante
(
1.7k
points)
giacomozm per togliere la "\n" devi settare la variabile stringa con [:-1]
G
Giacomozm
(1440 points)
19
59
68
commented
Oct 25, 2017
by
Giacomozm
(
1.4k
points)
Col readline giusto?
Please
log in
or
register
to add a comment.
andrea.sterbini
(207920 points)
750
1267
2373
answered
Oct 25, 2017
by
andrea.sterbini
(
208k
points)
NO CODICE, PLEASE
3
comment
Please
log in
or
register
to add a comment.