270
Comment:
|
660
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
Before staring with the exercises, have a look at the python tutorial, [[ScrumPy/Doc/Tutorial/PyIntro | here]]. | Before staring with the exercises, have a look at the python tutorial, [[ScrumPy/Doc/Tutorial/PyIntro | here]]. (a) Start a !ScrumPy session, and make the following assignments: {{{#!python >>> num_type_1 = 8 >>> num_type_2 = 9.0 >>> str_type = 'a' }}} What do you think the ''value'' and ''type'' of the following expressions are? {{{ num_type_1/2 num_type_1/2.0 num_type_2/3 5 + 2*10 str_type*4 }}} Control your answers using Python. Any deviations from expected? Why? |
Line 8: | Line 28: |
(b) |
Practical 1
Part 1 - Exploring Python
Before staring with the exercises, have a look at the python tutorial, here.
(a) Start a ScrumPy session, and make the following assignments:
What do you think the value and type of the following expressions are?
num_type_1/2 num_type_1/2.0 num_type_2/3 5 + 2*10 str_type*4
Control your answers using Python. Any deviations from expected? Why?
(b)
Part 2 - Creating Models