>>> 0 ** 0
1
>>> 0 ** 2
0
This file contains hidden or 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 LongestCommonSubstring(string1, string2): | |
| max_length = max(len(string1),len(string2)) | |
| min_length = min(len(string1),len(string2)) | |
| # sprawdzenie które słowo jest krótsze | |
| if len(string1)>=len(string2): | |
| long_str = string1 | |
| short_str = string2 | |
| else: | |
| long_str = string2 |
This file contains hidden or 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 math | |
| import uuid | |
| from abalone import app | |
| from .logic import Game, Board | |
| from flask import render_template, request, redirect, url_for, flash | |
| app.secret_key = 'C~\xb2\x95\x00:\xca\xc8b\x83\x89\xee\xf7)w&\xed\x96\xbe\x13\xfd\x88\x92\x81' | |
| games = dict() | |
| board = Board.Board() |