Skip to content
Snippets Groups Projects
Commit 36855992 authored by Rudolf, Michael's avatar Rudolf, Michael
Browse files

Minor changes and corrections

parent 8fc23fda
No related branches found
No related tags found
No related merge requests found
Pipeline #316273 passed
......@@ -2,8 +2,8 @@
Lesson 12 - Reading and Writing Complex Files
=============================================
Teaching: 5 min
Exercises: 10 min
Teaching: 45 min
Exercises: 15 min
-------------------
......@@ -451,8 +451,8 @@ In a similar manner you can store data using:
with open("output.dat", "wt", encoding="utf-8") as output_file:
output_file.write("Zeitpunkt, Messwert\n")
for ii in range(len(data["Zeitpunkt"])):
output_file.write(f'{data["Zeitpunkt"][ii]},{data["Messwert"][ii]}\n')
for tt,mm in zip(data["Zeitpunkt"], data["Messwert"]):
output_file.write(f"{tt},{mm}\n")
.. code-block:: text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment