drguthals / Introduction-to-Data-Science

This repository contains and introduction to data science for High School students using Azure Notebooks, Python, and Azure.
3 stars 2 forks source link

Class tomorrow #7

Open Jaygup opened 5 years ago

Jaygup commented 5 years ago

Just confirming that I have class tomorrow from 12 to 1.

drguthals commented 5 years ago

Hi @Jaygup Sorry!

Yes, Tuesday and Wednesday of this week is 12-1pm :)

drguthals commented 5 years ago

Hi @Jaygup - Is it not working for you today?

drguthals commented 5 years ago

Try this instead if it keeps not working: https://teams.microsoft.com/l/meetup-join/19%3ameeting_NGViMGQ4MGItZDA1Ni00MWYxLWI4NWMtZGUxOTgwZDRiN2Iy%40thread.v2/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%222c32a84d-4df9-4dee-b588-ce1695d41d51%22%7d

drguthals commented 5 years ago

For Loop Player Code:


playerA = [8, 9, 10, 8, 7, 8]
playerB = [10, 13, 18, 20, 14]

playerATotalScore = 0
playerBTotalScore = 0 

for playerAScore in playerA: 
    playerATotalScore += playerAScore 

for playerBScore in playerB: 
    playerBTotalScore += playerBScore 

print( 'Average score for player A:', playerATotalScore/len(playerA))
print( 'Average score for player B:', playerBTotalScore/len(playerB))
print( 'Average score for all players:', (playerBTotalScore/len(playerB) + playerATotalScore/len(playerA))/2)