+ 1600355103213
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Part1-Basics/c_own_code.py b/Part1-Basics/c_own_code.py
index db61429..15c6d8d 100644
--- a/Part1-Basics/c_own_code.py
+++ b/Part1-Basics/c_own_code.py
@@ -20,7 +20,7 @@
import sys
# depending on the complexity of your script you will have a longer list of libraries
-sys.stdout.write("This is an script with three sections \n\n")
+sys.stdout.write("THIS IS A NEW TEXT\n")
sys.stdout.write("Header section using '#' characters\n")
sys.stdout.write("library section using import/from ... import commands\n")
sys.stdout.write("Code section calling the 'sys' library to show you this text\n")
diff --git a/Part1-Basics/d_variables.py b/Part1-Basics/d_variables.py
index 5737729..2a163a6 100644
--- a/Part1-Basics/d_variables.py
+++ b/Part1-Basics/d_variables.py
@@ -21,8 +21,8 @@
# Let's write our code
# Let's create two variables and assign them two values
-i_am_a_variable = 1
-i_am_another_variable = 2
+i_am_a_variable = 23
+i_am_another_variable = 1
# Let's assign the result of an operation to a third variable
i_store_the_result = i_am_a_variable + i_am_another_variable
diff --git a/SIMONE GRASSO/Conditionals.py b/SIMONE GRASSO/Conditionals.py
new file mode 100644
index 0000000..356478f
--- /dev/null
+++ b/SIMONE GRASSO/Conditionals.py
@@ -0,0 +1,38 @@
+##################################################
+# Author: Simone Grasso
+# Copyright: Copyright 2020, IAAC
+# Credits: [Institute for Advanced Architecture of Catalonia - IAAC, Advanced Architecture group]
+# License: Apache License Version 2.0
+# Version: 1.0.0
+# Maintainer: Simone Grasso
+# Email: simone.grasso@students.iaac.net
+# Status: student
+##################################################
+
+# End of header section
+
+my_previous_city_name = 'Catania'
+my_previous_city_population = 1116000
+
+my_city_name = 'Barcelona'
+my_city_population = 5500000
+
+if my_city_population > 10000000:
+ print('my city is a megacity')
+elif my_city_population > 1500000:
+ print('my city is a large metropolitan area')
+ if my_city_population > my_previous_city_population:
+ print ('my city is bigger than the previous')
+ else:
+ print('my previous city is bigger than the current city')
+elif my_city_population > 500000:
+ print('my city is a metropolitan area')
+elif my_city_population > 200000:
+ print('my city is a medium size urban area')
+elif my_city_population > 50000:
+ print('my city is a small urban area')
+else:
+ print('my city is neither a mega city nor a large metropolitan area')
+
+print('end of script')
+
diff --git a/SIMONE GRASSO/Robot.py b/SIMONE GRASSO/Robot.py
new file mode 100644
index 0000000..6f61d78
--- /dev/null
+++ b/SIMONE GRASSO/Robot.py
@@ -0,0 +1,26 @@
+##################################################
+# Author: Simone Grasso
+# Copyright: Copyright 2020, IAAC
+# Credits: [Institute for Advanced Architecture of Catalonia - IAAC, Advanced Architecture group]
+# License: Apache License Version 2.0
+# Version: 1.0.0
+# Maintainer: Simone Grasso
+# Email: simone.grasso@students.iaac.net
+# Status: student
+##################################################
+
+d_distance = float(2.0)
+
+#DeltaX = variazione di distanza in movimento
+
+if d_distance > 10:
+ print('fast è la velocità''3 è il DeltaX')
+elif d_distance > 5:
+ print('same speed è la velocità''3 è il DeltaX')
+elif 3 < d_distance < 6:
+ print('slow è la velocità ' ' 1.5 è il DeltaX')
+elif d_distance <= 3:
+ print('stop')
+
+
+
diff --git a/SIMONE GRASSO/loop exc.py b/SIMONE GRASSO/loop exc.py
new file mode 100644
index 0000000..abd82f4
--- /dev/null
+++ b/SIMONE GRASSO/loop exc.py
@@ -0,0 +1,17 @@
+print('lets print a series of number')
+
+print('......................')
+print('you can also use the counter value as part of internal functions')
+
+text = 'this is an interection value: '
+
+for i in range (11, 20, 3):
+ print (text + str(i))
+
+print('................')
+print('you can also create some shapes: ')
+
+text = '$'
+character = ' "_"$£'
+for i in range(1, 10):
+ print('text' + 'character')
\ No newline at end of file
diff --git a/SIMONE GRASSO/mY CITY.py b/SIMONE GRASSO/mY CITY.py
new file mode 100644
index 0000000..c6fa5e2
--- /dev/null
+++ b/SIMONE GRASSO/mY CITY.py
@@ -0,0 +1,19 @@
+##################################################
+# Author: Simone Grasso
+# Copyright: Copyright 2020, IAAC
+# Credits: [Institute for Advanced Architecture of Catalonia - IAAC, Advanced Architecture group]
+# License: Apache License Version 2.0
+# Version: 1.0.0
+# Maintainer: Simone Grasso
+# Email: simone.grasso@students.iaac.net
+# Status: student
+##################################################
+
+# End of header section
+
+city_name = 'Catania'
+city_area = 198900000
+city_population = 390000
+city_density = city_population/city_area
+
+print('population Density: ' + str(city_density) + ' inhabitants per hectare')
\ No newline at end of file