100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
College aantekeningen

Information and Data Management (IDM) Lecture Notes (Theory & Python) - GRADE 9,0

Beoordeling
5.0
(1)
Verkocht
4
Pagina's
61
Geüpload op
28-06-2021
Geschreven in
2020/2021

Lecture notes of the material for the final exam (2021) for Information and Data Management (IDM). Includes notes from all lectures and knowledge clips of both the theory and the python exercises covered in the course. Also includes links to Google Colab workbooks from the Python classes with additional notes.

Meer zien Lees minder
Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Studie
Vak

Documentinformatie

Geüpload op
28 juni 2021
Aantal pagina's
61
Geschreven in
2020/2021
Type
College aantekeningen
Docent(en)
Chintan amrit & julien rossi
Bevat
Alle colleges

Onderwerpen

Voorbeeld van de inhoud

Information & Data Management
Lecture Notes




Week 1 2
Python Lecture Videos 2
Lecture 1a: Python Lecture 5
Lecture 1b: Information Systems Topics Lecture 9

Week 2 14
Python Lecture Videos 14
Lecture 2a: Python Lecture 20
Lecture 2b: Information Systems Topics Lecture 22

Week 3 27
Python Lecture Videos 27
Lecture 3a: Python Lecture 31
Lecture 3b: Information Systems Topics Lecture 33

Week 5 38
Python Lecture Videos 38
Lecture 5a: Python Lecture 42
Lecture 5b: Information Systems Topics Lecture 43

Week 6 48
Python Lecture Videos 48
Lecture 6a: Python Lecture 51
Lecture 6b: Information Systems Topics Lecture 51

Week 7 53
Python Lecture Videos 53
Lecture 7a: Python Lecture 55
Lecture 7b: Information Systems Topics Lecture 55

, 2


Week 1
Python Lecture Videos
Google Colab
• https://colab.research.google.com/
• New notebook
• Open a notebook via a shared link copy to drive then you can make changes
• Tutorial explanation download file to laptop, then upload to Google Colab

Variables and Data Types
• Variable assignment: giving the variable a value
o Variable = value
o Print (Variable) value
o You can assign numbers and text
o This is when a variable gets a value.
o When it is the first time the variable name appears, the Python interpreter records the name
and the initial value.
• Modifying the value
o Give the variable a new value
revenue = 130000
print(revenue)
revenue = 12000
print(revenue)
130000
12000
o Use the variable itself
print(revenue)
revenue = revenue - 1000
print(revenue)
12000
11000
o Using multiple variables
number_sold_units = 145234
unit_price = 12.60
total_revenue = number_sold_units * unit_price
print(total_revenue)
1829948.4
o A variable has to be assigned BEFORE being used otherwise, NameError
• Type
o Every variable has a type.
o The type indicates what does the value look like.
o The type indicates what you can do with the object.
o print(type(variable)) <class 'int'> or <class 'float'> or <class 'str'>
o Integer: number
o Float: number with decimals
o String: text
o Text + text will print it side by side
o Number + number will add the numbers together
o Text + number TypeError
• Type conversion
o A string that looks like a number can be converted to a number.
o Convert text to number (integer or float)
print (int('1234'))
• print (int('1234.2')) won’t work, 1234.2 is not an integer
• print (int('Hello')) won’t work, Hello is not an integer
print (float('1234.2'))
o Convert number to text

, 3


To display a space, add a space string!
print(message + ' ' + str(ratio))
• Hello world 0.1187076923076923

• Quiz:

Input Function
• An input is a data that is given to the program from
outside the program.
• Typical inputs includes:
o Asking the user to type a value
o Reading from a file
o Reading a network connection
o Accessing a database
• We will focus on the first type of input: asking the
human.
o Use input to ask the user something
o Store the result in a variable
o This variable is of type str, it is a string
• Example




o write text and press enter




• If the user has to type numbers, then we need to convert the text to numbers.

, 4


• Quiz:

Operations
• The mathematical operators have a priority when computing a result.
• This is called Operators precedence.
• Standard operators in order of priority:
o ** power (as in 3 ** 4 = 3 * 3 * 3 * 3)
o * multiplication (as in 3 * 2)
o / division (as in )
o + addition (as in 3 + 2)
o - substraction (as in 3 - 2)
• You can use this with numbers or variables




• Quiz




Output
• "Output" is when a program presents something to the user.
• The first kind of output is displaying some text on screen. For this, we use print
• Note that we can use either ' or " to enclose text.
o Mixing both will result in error SyntaxError
o print("Hello World") Hello World
o print(‘Hello World’) Hello World
• You can also display numbers and results of operations
o print(4) 4
o print(4+2*34) 72
• Numbers and strings are different things
o print("2 * 1234") 2 * 1234
o print(2 * 1234) 2468
• We can chain together some text and numbers
$13.42
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
3 jaar geleden

3 jaar geleden

Thank you!

5.0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
zarafranceschi Universiteit van Amsterdam
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
458
Lid sinds
6 jaar
Aantal volgers
307
Documenten
48
Laatst verkocht
2 maanden geleden
UvA BBA Study Resources - GPA 8.5

Book summaries and lecture notes for the Bachelor of Business Administration taught at the University of Amsterdam (UvA) - guaranteed to help you pass your courses! (Year 1 GPA: 8.10, Year 2 GPA: 9.00)

4.5

81 beoordelingen

5
55
4
14
3
9
2
1
1
2

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen