A4 Python for engineers · Practice
Project: plot and analyze a grid-frequency log
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 3 kinds solid
Check
Set out_frac to the fraction of the hour the frequency spends more than 0.08 Hz away from 50 Hz.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Set f_avg to the hour's 2-minute averages: an array with one mean for each block of 2 × 60 seconds.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Set n_below to the number of seconds in the hour when the frequency is below 49.9 Hz.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A4