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: ordered structures", exercise 1 #12

Open essepuntato opened 4 years ago

essepuntato commented 4 years ago

Write a sequence of instructions in Python to create a list with the following elements ordered alphabetically: "​Harry"​, "​Draco"​, "​Hermione"​, ​"​Ron"​, "​Severus"​.

a809 commented 4 years ago

my_first_list

arcangelo7 commented 4 years ago
my_list = ["Harry", "Draco", "Hermione", "Ron", "Severus"]
my_list.sort()
Vince2992 commented 4 years ago

Ex1

noreanystrom commented 4 years ago

image

elisasilvad commented 4 years ago

I tried in two different ways First Excercise 4 1

Second Excercise 4 1 1

arimuti commented 4 years ago

image

morinigiu commented 4 years ago
Schermata 2019-10-29 alle 23 48 20
FrancescoFernicola commented 4 years ago

ex1_28_10_2019

ariannamorettj commented 4 years ago

image