"* Able to use regular Python calculation operators: addition +, subtraction -, multiplication \\* , division /, integer division //, modulo % and exponentiation **\n",

"* Understand the difference between the four basic data types: integer (int), float, text strings (str), and truth values (boolean)\n",

"* Understand how the calculation operators work for the different data types\n",

"* Be able to use scientific notation for particularly small and especially large floating numbers\n",

"* Understand that code must be error-free to run, and be able to correct simple syntax errors\n",

"* Understand why and how we use variables in programming, and that variable assignment is not the same as mathematical equality\n",

"* Be able to print to screen and input data from user via keyboard with standard print () and input () functions\n",

"* Be able to easily convert between data types with standard functions like int () and float ()\n",

"\n",

"## Starting Out with Python:\n",

"\n",

"* Kap. 2: Input, Processing, and Output\n",

"\n",

"\n",

" \n",

"\n",

"## Approval:\n",

"\n",

"For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises. \n",

"\n",

"\n",

"Tasks that are a little extra difficult are marked with a star. Tasks that go beyond what has been lectured are marked with two stars.\n",

"\n",

"All assignments must be demonstrated to a learning assistant in person. In tasks where you write program code, this should also be demonstrated. Good luck!\n",

"\n",

"\n",

"Task | Theme | Difficulty | TDT4127\n",

"--- | --- | --- | ---\n",

"[Intro to Jupyter](Introduction%20to%20Jupyter%20(ENG).ipynb) | Jupyter notebooks | - | ---\n",

"[Numerics Theory](Numerics%20Theory.ipynb) | Theory | - | mandatory\n",

"[James Bond and Operation round](James%20Bond%20and%20Operation%20round()(ENG).ipynb)|Strings, rounding, whole number divison, modulo|![img](./../Resources/Images/star_yellow.svg) ![img](./../Resources/Images/star_yellow.svg) | ---"

]

},

{

"cell_type": "code",

"execution_count": null,

"metadata": {},

"outputs": [],

"source": []

}

],

"metadata": {

"kernelspec": {

"display_name": "Python 3",

"language": "python",

"name": "python3"

},

"language_info": {

"codemirror_mode": {

"name": "ipython",

"version": 3

},

"file_extension": ".py",

"mimetype": "text/x-python",

"name": "python",

"nbconvert_exporter": "python",

"pygments_lexer": "ipython3",

"version": "3.7.4"

},

"toc": {

"base_numbering": 1,

"nav_menu": {},

"number_sections": false,

"sideBar": true,

"skip_h1_title": false,

"title_cell": "Table of Contents",

"title_sidebar": "Contents",

"toc_cell": false,

"toc_position": {},

"toc_section_display": true,

"toc_window_display": false

}

},

"nbformat": 4,

"nbformat_minor": 4

}

%% Cell type:markdown id: tags:

# Assignment 1

## Learning Objectives:

* Able to use regular Python calculation operators: addition +, subtraction -, multiplication \* , division /, integer division //, modulo % and exponentiation **

* Understand the difference between the four basic data types: integer (int), float, text strings (str), and truth values (boolean)

* Understand how the calculation operators work for the different data types

* Be able to use scientific notation for particularly small and especially large floating numbers

* Understand that code must be error-free to run, and be able to correct simple syntax errors

* Understand why and how we use variables in programming, and that variable assignment is not the same as mathematical equality

* Be able to print to screen and input data from user via keyboard with standard print () and input () functions

* Be able to easily convert between data types with standard functions like int () and float ()

## Starting Out with Python:

* Kap. 2: Input, Processing, and Output

## Approval:

For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises.

Tasks that are a little extra difficult are marked with a star. Tasks that go beyond what has been lectured are marked with two stars.

All assignments must be demonstrated to a learning assistant in person. In tasks where you write program code, this should also be demonstrated. Good luck!

Task | Theme | Difficulty | TDT4127

--- | --- | --- | ---

[Intro to Jupyter](Introduction%20to%20Jupyter%20(ENG).ipynb) | Jupyter notebooks | - | ---

[Numerics Theory](Numerics%20Theory.ipynb) | Theory | - | mandatory

[James Bond and Operation round](James%20Bond%20and%20Operation%20round()(ENG).ipynb)|Strings, rounding, whole number divison, modulo|![img](./../Resources/Images/star_yellow.svg)![img](./../Resources/Images/star_yellow.svg) | ---

"For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises. Some of the regular python exercises has been translated to english, marked with (ENG) at the end of the task name. \n",

"For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises. \n",

"\n",

"\n",

"Tasks that are a little extra difficult are marked with a star. Tasks that go beyond what has been lectured are marked with two stars.\n",

...

...

%% Cell type:markdown id: tags:

# Assignment 1

## Learning Objectives:

* Able to use regular Python calculation operators: addition +, subtraction -, multiplication \* , division /, integer division //, modulo % and exponentiation **

* Understand the difference between the four basic data types: integer (int), float, text strings (str), and truth values (boolean)

* Understand how the calculation operators work for the different data types

* Be able to use scientific notation for particularly small and especially large floating numbers

* Understand that code must be error-free to run, and be able to correct simple syntax errors

* Understand why and how we use variables in programming, and that variable assignment is not the same as mathematical equality

* Be able to print to screen and input data from user via keyboard with standard print () and input () functions

* Be able to easily convert between data types with standard functions like int () and float ()

## Starting Out with Python:

* Kap. 2: Input, Processing, and Output

## Approval:

For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises. Some of the regular python exercises has been translated to english, marked with (ENG) at the end of the task name.

For TDT4127 students: You must do the two mandatory exercises for TDT4127 (Programming and Numerics) below (marked in table), in addition to three exercises of your own choice from the table of regular programming exercises.

Tasks that are a little extra difficult are marked with a star. Tasks that go beyond what has been lectured are marked with two stars.

All assignments must be demonstrated to a learning assistant in person. In tasks where you write program code, this should also be demonstrated. Good luck!

Task | Theme | Difficulty | TDT4127

--- | --- | --- | ---

[Intro to Jupyter](Introduction%20to%20Jupyter%20(ENG).ipynb) | Jupyter notebooks | - | ---

[Numerics Theory](Numerics%20Theory.ipynb) | Theory | - | mandatory

[James Bond and Operation round](James%20Bond%20and%20Operation%20round()(ENG).ipynb)|Strings, rounding, whole number divison, modulo|![img](./../Resources/Images/star_yellow.svg)![img](./../Resources/Images/star_yellow.svg) | ---