comp-think / 2019-2020

The GitHub repository containing all the material related to the Computational Thinking and Programming course of the Digital Humanities and Digital Knowledge degree at the University of Bologna (a.a. 2019/2020).
Other
12 stars 3 forks source link

Lecture "Organising information: unordered structures", exercise 1 #22

Open essepuntato opened 4 years ago

essepuntato commented 4 years ago

Write a code in Python to create a set of the following elements: "​Bilbo", "​Frodo", "​Sam", "​Pippin", "​Merry".

sntcristian commented 4 years ago
my_set = set()
my_set.add("Bilbo")
my_set.add("Frodo")
my_set.add("Sam")
my_set.add("Pippin")
my_set.add("Merry")
arcangelo7 commented 4 years ago
lotr_characters = {"​Bilbo", "​Frodo", "​Sam", "​Pippin", "​Merry"}
Vince2992 commented 4 years ago

Ex1_10

aschimmenti commented 4 years ago

set  1

FrancescoFernicola commented 4 years ago

my_set = set()
my_set.add("Bilbo")
my_set.add("Frodo")
my_set.add("Sam")
my_set.add("Pippin")
my_set.add("Merry")

print(my_set)
elisasilvad commented 4 years ago

Excercise 5 1

marcograsso commented 4 years ago

unordered_ex1

morinigiu commented 4 years ago
Schermata 2019-12-08 alle 17 09 35