This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am MrBlaise on github. | |
* I am balazsrostas (https://keybase.io/balazsrostas) on keybase. | |
* I have a public key whose fingerprint is FA22 0899 6738 653F 5080 421F 1335 7927 E80B 0A66 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2008 október - Robot | |
def egyszerusitheto(szoveg): | |
karakterek = szoveg[:2] | |
if karakterek == "ED" or karakterek == "DE" or karakterek == "KN" or karakterek == "NK": | |
return True | |
if len(szoveg) <= 2: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2013 május - Választások | |
class Valaszto(object): | |
def __init__(self, kerSzam, szavSzam, vezNev, utoNev, part): | |
self.kerSzam = kerSzam | |
self.szavSzam = szavSzam | |
self.vezNev = vezNev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2012 október - Színkép | |
# 1. feladat | |
kepFajl = open("kep.txt", "r") | |
kepAdat = [ sor.strip("\n").split(" ") for sor in kepFajl ] | |
kepAdat = [ [ int(szam) for szam in lista ] for lista in kepAdat ] | |
kepAdat = [ kepAdat[index:index+50] for index in range(0, len(kepAdat), 50) ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# A legelső sor jelzi a gépnek hol található a python fordító a gépben és melyik verzióját használja. /usr/bin/env python3 env szócska univerzális, minden operációs rendszeren működik! | |
# A python3 jelzi, hogy ha esetleg több verzió van telepítve akkor a 3-asat használja! | |
# Rostás Balázs - Emelt informatika érettségi 2012 május - Futár | |
# Díjkalkuláció függvény létrehozása | |
def fizetes(km): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2011 október - Pitypang | |
def arKiszamitas(lista): | |
if lista[2] < 121: | |
szezon = 9000 | |
elif lista[2] < 244: | |
szezon = 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi - 2011 május - Szójáték | |
# Fájl beolvasása | |
szavakFajl = open("szoveg.txt", "r") | |
szavakAdat = [ szo.strip().split() for szo in szavakFajl ] | |
szavakFajl.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2010 október - Anagramma | |
def anagrammaKereses(keresettSzo, szavak): | |
anagramma = True | |
anagrammaSzavak = [] | |
for szo in szavak: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2010 május - Helyjegy | |
# 1.feladat | |
fajlBe = open("eladott.txt", "r") | |
buszAdat = fajlBe.readline() | |
buszAdat = buszAdat.strip().split() | |
buszAdat = [int(adat) for adat in buszAdat] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Rostás Balázs - Emelt informatika érettségi 2009 október - Útépités | |
def masodperc(lista): | |
return (lista[0]*3600) + (lista[1]*60) + (lista[2]) | |
def ora(masodperc): | |
ora = masodperc // 3600 |
NewerOlder