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
def exit (): | |
print ("A kilépés megkezdődik...") | |
def login (): | |
print ("Bejelentkezés...") | |
def MainMenu(lista): | |
a = 0 | |
for i in range (len(cim)): | |
print ("%d.%s" %(a,lista[0][i])) |
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
import msvcrt | |
import re | |
def login (): | |
print ("Bejelentkezés...") | |
def strcheck1 (string): | |
if re.match ('^[a-z0-9]{8}$',string) != None: | |
return True | |
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
from random import randint | |
class Uszo: | |
def __init__ (self,rajtszam,ev,ido): | |
self.ev = ev | |
self.ido = ido | |
self.rajtszam = rajtszam | |
tomb = [] | |
tombe = [] | |
for i in range(12): |
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
verem = [] | |
sor = [] | |
def sorba_all(sor,verem): | |
a = input ("Add meg a sorba beállt nevét:") | |
sor.append(a) | |
def sorra_kerul(sor,verem): | |
if not sor: | |
return | |
nev = sor[0] |
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
def faktorialis (a): | |
s = 1 | |
for szam in range(1,a+1): | |
s = s*szam | |
return s | |
a = int(input ("szam:")) | |
def pascalharomszog (i): | |
for n in range(i): | |
s = "" |
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
from decimal import * | |
from math import * | |
import compare as compare | |
lista = [] | |
def calculate (it,prec): | |
k1=545140134 | |
k2=13591409 | |
k3=640320 | |
k4=100100025 | |
k5=327843840 |
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
f=open('program.txt','r') | |
A=[] | |
for x in f: | |
A.append(x.strip()) | |
del A[0] | |
sorsz=input('Kérek egy utasítássor számot: ') | |
sorsz=int(sorsz) | |
for i in range(len(A[sorsz])-1): | |
if A[sorsz][i]+A[sorsz][i+1] == "ED" or A[sorsz][i]+A[sorsz][i+1] == "DE" or A[sorsz][i]+A[sorsz][i+1] == "KN" or A[sorsz][i]+A[sorsz][i+1] == "NK": | |
print ("találtam hibát!") |
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
1555 1630 | |
1600 1635 | |
1600 1640 | |
1610 1640 | |
1625 1720 | |
1635 1720 | |
1645 1740 | |
1650 1720 | |
1710 1730 | |
1715 1810 |
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
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
#include <vector> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
int myrandom (int i) { return std::rand()%i;} |
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
#include "FastLED.h" | |
#define NUM_LEDS 128 | |
const int dataline = 4; | |
CRGB leds[NUM_LEDS]; | |
int array[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; | |
int arraytemp[16] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; | |
int i,j,k,r; | |
void coloumn(uint8_t x, int value) { | |
if (value < 5) { |
OlderNewer