-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path01_print.py
38 lines (27 loc) · 1.27 KB
/
01_print.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
print("Hello there human!")
print("do you know you can put any text into a print()?")
print("like stars *******, numbers: 1,2,42,999")
# exercise 1: Use print() to display "Hello world" in the console
# Do one exercise at a time.
# exercise 2: Use print() to display some asterisks (this is a
# asterisk -> * )
# exercise 3: Use multiple print() to display a triangle from
# asterisks.
# *
# **
# ***
# ****
# As you noticed everything after a hash sign # is plain english and
# is ignored by python. The hash sign # begins a comment - text
# ignored by the python interpreter.
# During our classes comments are used for explanations and
# exercises. Usually programmers use comments to describe what the
# code is intended to do, or why it was written. Comments usually
# are placed above code.
# Sample comments from real large scale systems:
# Should be removed when all business tools uses DeleteTrade (from ETRM/Allegro)
# For multi hour trades, DST long day and DST short day are currently not handled correctly (from ETRM/Allegro)
# compute standard deviation for time series and add it to message
# (I have no idea why, but finance department requested it)
# shipping department has a bug in their system, this weird code is
# a workaround, remove once shipping system is fixed!