%%html
<h2>HTML Cell Output from Jupyter</h2>
<!-- Body contains the contents of the Document -->
<body>
<table class="table">
<thead>
<tr>
<th>Player ID</th>
<th>Name</th>
<th>Current Team</th>
<th>Earnings</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ethan</td>
<td>Ethan Arnold</td>
<td>Evil Geniuses</td>
<td>$288,266.67</td>
</tr>
<tr>
<td>jawgemo</td>
<td>Alexander Mor</td>
<td>Evil Geniuses</td>
<td>$258,906.67</td>
</tr>
<tr>
<td>Boostio</td>
<td>Kelden Pupello</td>
<td>Evil Geniuses</td>
<td>$253,136.67</td>
</tr>
<tr>
<td>C0M</td>
<td>Corbin Lee</td>
<td>Evil Geniuses</td>
<td>$252,366.67</td>
</tr>
<tr>
<td>Demon1</td>
<td>Max Mazanov</td>
<td>Evil Geniuses</td>
<td>$246,666.67</td>
</tr>
<tr>
<td>Chronicle</td>
<td>Timofey Khromov</td>
<td>Fnatic</td>
<td>$238,571.66</td>
</tr>
<tr>
<td>Boaster</td>
<td>Jake Howlett</td>
<td>Fnatic</td>
<td>$214,422.02</td>
</tr>
<tr>
<td>Derke</td>
<td>Nikita Sirmitev</td>
<td>Fnatic</td>
<td>$211,482.66</td>
</tr>
<tr>
<td>saadhak</td>
<td>Matias Delipetro</td>
<td>Loud</td>
<td>$207,560.37</td>
</tr>
<tr>
<td>d4v41</td>
<td>Khalish Rusyaidee</td>
<td>Paper Rex</td>
<td>$196,729.44</td>
</tr>
</tbody>
</table>
</body>
HTML Cell Output from Jupyter
Player ID | Name | Current Team | Earnings |
---|---|---|---|
Ethan | Ethan Arnold | Evil Geniuses | $288,266.67 |
jawgemo | Alexander Mor | Evil Geniuses | $258,906.67 |
Boostio | Kelden Pupello | Evil Geniuses | $253,136.67 |
C0M | Corbin Lee | Evil Geniuses | $252,366.67 |
Demon1 | Max Mazanov | Evil Geniuses | $246,666.67 |
Chronicle | Timofey Khromov | Fnatic | $238,571.66 |
Boaster | Jake Howlett | Fnatic | $214,422.02 |
Derke | Nikita Sirmitev | Fnatic | $211,482.66 |
saadhak | Matias Delipetro | Loud | $207,560.37 |
d4v41 | Khalish Rusyaidee | Paper Rex | $196,729.44 |
import getpass, sys
def question_with_response(prompt):
print("Question: " + prompt)
msg = input()
return msg
questions = 3
correct = 0
print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions.")
question_with_response("Are you ready to take a test?")
rsp = question_with_response("Who is at the top team in earnings currently?")
if rsp == "Evil Geniuses":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("What is the player id of the top earner, Ethan Arnold?")
if rsp == "Ethan":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
rsp = question_with_response("How many players have more than $200,0000 earnings?")
if rsp == "9":
print(rsp + " is correct!")
correct += 1
else:
print(rsp + " is incorrect!")
print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hello, justin running /Library/Developer/CommandLineTools/usr/bin/python3
You will be asked 3 questions.
Question: Are you ready to take a test?
Question: Who is at the top team in earnings currently?
Evil Geniuses is correct!
Question: What is the player id of the top earner, Ethan Arnold?
Ethan is correct!
Question: How many players have more than $200,0000 earnings?
9 is correct!
justin you scored 3/3