lehrkraefte:sbt:informatik:glf22:python:little-programming-tasks-turtle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:sbt:informatik:glf22:python:little-programming-tasks-turtle [2023/01/27 13:37]
Karlheinz Schubert
lehrkraefte:sbt:informatik:glf22:python:little-programming-tasks-turtle [2023/01/27 13:45] (current)
Karlheinz Schubert [Zeichne ein Balkendiagram]
Line 93: Line 93:
 <code python> <code python>
 ReadModus = 'r' ReadModus = 'r'
-DateiInhalt = open('textdatei.txt', ReadModus) +Datei = open('werte.csv', ReadModus) 
-Werte = DateiInhalt.split(','+DateiInhalt = Datei.readline() 
 +TextWerte = DateiInhalt.split(',')  
 +Werte = list(map(int, TextWerte))
 print(Werte) print(Werte)
 </code> </code>
  • lehrkraefte/sbt/informatik/glf22/python/little-programming-tasks-turtle.1674823020.txt.gz
  • Last modified: 2023/01/27 13:37
  • by Karlheinz Schubert