From 5ad0016dceea60e3d7d73437944e7b155153b505 Mon Sep 17 00:00:00 2001
From: simonegrasso9 <65192245+simonegrasso9@users.noreply.github.com>
Date: Mon, 21 Sep 2020 16:43:54 +0200
Subject: [PATCH 1/3] update from sinay
---
.idea/Programming_with_python_2021.iml | 8 +
.../inspectionProfiles/profiles_settings.xml | 6 +
.idea/misc.xml | 4 +
.idea/modules.xml | 8 +
.idea/vcs.xml | 11 +
.idea/workspace.xml | 245 ++++++++++++++++++
Part1-Basics/c_own_code.py | 2 +-
Part1-Basics/d_variables.py | 4 +-
SIMONE GRASSO/mY CITY.py | 19 ++
9 files changed, 304 insertions(+), 3 deletions(-)
create mode 100644 .idea/Programming_with_python_2021.iml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 SIMONE GRASSO/mY CITY.py
diff --git a/.idea/Programming_with_python_2021.iml b/.idea/Programming_with_python_2021.iml
new file mode 100644
index 0000000..c444878
--- /dev/null
+++ b/.idea/Programming_with_python_2021.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..a2e120d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..039c78b
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..5fc0921
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..d4c397c
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1600355103213
+
+
+ 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/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
From fa67978afe083f10952c457d1126ddf0608dce7a Mon Sep 17 00:00:00 2001
From: simonegrasso9 <65192245+simonegrasso9@users.noreply.github.com>
Date: Mon, 21 Sep 2020 18:15:44 +0200
Subject: [PATCH 2/3] conditionals
work condition
---
SIMONE GRASSO/Conditionals.py | 38 +++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 SIMONE GRASSO/Conditionals.py
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')
+
From 35f44d1fa490a95bfba07a722bfe5583cdfc28a5 Mon Sep 17 00:00:00 2001
From: simonegrasso9 <65192245+simonegrasso9@users.noreply.github.com>
Date: Wed, 23 Sep 2020 15:23:23 +0200
Subject: [PATCH 3/3] 1
---
SIMONE GRASSO/Robot.py | 26 ++++++++++++++++++++++++++
SIMONE GRASSO/loop exc.py | 17 +++++++++++++++++
2 files changed, 43 insertions(+)
create mode 100644 SIMONE GRASSO/Robot.py
create mode 100644 SIMONE GRASSO/loop exc.py
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