wordsearch

2019-11-19 Thread jezkator
Hi, I have got a problem in my searchword. Everything runs properly. Output writes word, coordinates and direction, but i need, that output have same arrangement as second file First file includes board, where program search: xmuinjekci evelkochov cadvouhrac feminizaci pyzlanpbik ldvojlinky osvrh

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): > On 11/19/19 6:47 AM, jezka...@gmail.com wrote: > > Hi, I have got a problem in my searchword. Everything runs properly. Output > > writes word, coordinates and direction, but i need, that output have same > > arrangement as se

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 17:07:36 UTC+1 Richard Damon napsal(a): > On Nov 19, 2019, at 10:56 AM, Chris Angelico wrote: > > > > On Wed, Nov 20, 2019 at 2:46 AM wrote: > >> > >> Dne úterý 19. listopadu 2019 13:33:53 UTC+1 Richard Damon napsal(a): > On 11/19/19 6:47 AM, jezka...@gmail.co

Re: wordsearch

2019-11-19 Thread jezkator
Dne úterý 19. listopadu 2019 17:14:06 UTC+1 jezk...@gmail.com napsal(a): > Dne úterý 19. listopadu 2019 17:07:36 UTC+1 Richard Damon napsal(a): > > On Nov 19, 2019, at 10:56 AM, Chris Angelico wrote: > > > > > > On Wed, Nov 20, 2019 at 2:46 AM wrote: > > >> > > >> Dne úterý 19. listopadu 2019

python 3 prefix to infix without too many parethesis

2019-12-09 Thread jezkator
Hi, I have got a problem. I wrote a code for prefix to infix. It works, but I need improve it so on input there will be only necessary parentheses. Can u help me? Here is the code: import re a = input() class Calculator: def __init__ (self): self.stack = [] def push (self, p):

Re: heap enhancements

2020-01-03 Thread jezkator
ok, so it could be like this? import sys chain = sys.stdin.read().splitlines() array_z = list() for line in chain: row=list(map(str, line.split())) array_z.append(row) #every line in input changes into 2D array def checking(chain): "checking if characters are numbers or not" for c