my code stock.com

Snippet options

Download: Download snippet as zadanie24.py.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

with open('input.txt') as a:
  read_data = a.read()
  
with open("output.txt", "w") as b:
  b.write(read_data)
  
'''
Prepacte pan ucitel ale jednoducho neviem ako precitat cisla (pocet vymeskanych hodin) ked je to napisane takto cele vedla seba - je to totalna hlupost. Preco to nie je v databaze? Tak by sa dal spravit priemer jednoduchym prikazom ktory by spriemeroval vsetky cisla v stlpci. Ale takto? Nebudem hadam 3 hodiny pisat skript ktory mi bude citat .txt subor a oddelovat cisla od pismen (aby som dostal len pocet hodin). A potom aj tie cisla (pocty hodin) triedit na vymeskane a nevymeskane

S tym co som hore napisal sa precita text z jedneho suboru a prepise do druheho
'''
  
'''
1  Jozef Ignac         32 2
2  Ladisla Bagin       0  0
3  Anna Baginova       16 0
4  Jan Trnka           2  0
5  Peter Lacko         6  0
6  Jana Hudcova        3  2
7  Michal Nebral       0  2

'''

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.