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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Oct 7 13:55:20 2016 | |
@author: Vladislav.Zaimov | |
""" | |
input_string = input("Input: ").lower() | |
encoding_scan = {k: 0 for k in r'''abcdefghijklmnopqrstuvwxyz!"#$%&\'()*+,-./:;<=>?@[\\]^_{|}~'''} #init encoding scan | |
for ch in input_string: #populate encoding scan |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Sep 30 12:48:00 2016 | |
@author: Vladislav.Zaimov | |
""" | |
lake_depth = 0 | |
lake_water = 0 | |
input_string = input("Input: ").lower() |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Sep 30 11:38:12 2016 | |
@author: Vladislav.Zaimov | |
""" | |
input_string = input("Input: ").lower() | |
my_list = [x.strip() for x in input_string.split(",")] |
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
# Is_Palindrome(String)-> Boolean | |
# Checks if a text is palindrome or not (True ot False) | |
def Is_Palindrome(input_string): | |
string_len=len(input_string) | |
if string_len% 2 == 0: | |
beginning=input_string[:string_len/2] | |
ending=input_string[string_len/2:] | |
else: |