Currently at the second module of SoftUni program. You can find other projects in the repository - FundamentalsModule in which I'm uploading my additional projects. 
# Read User input
n1, n2 ,n3 = int(input()), int(input()), int(input())
#Logic
largest = max(n1,n2,n3)
#Print User output
print(largest)
Basics/biggest_of_3_nums.3.py
slavcho179/SoftUniCourse
# Read User input
n1 = int(input())
n2 = int(input())
n3 = int(input())
# Logic
if n1 > n2:
    if n1 > n3:
        print(n1)
    else:
        print(n2)
else:
    if n2 < n3:
        print(n3)
    else:
        print(n2)

# Print User output
Basics/biggest_of_3_nums.py
slavcho179/SoftUniCourse
# Read User input
n = int(input())
# Logic
for i in range(n):
    num = int(input())
    if num % 2 == 1:
        print(f"{num} is odd!")
        break

else:
    print('All numbers are even.')
# Print User output
Basics/even_numbers.py
slavcho179/SoftUniCourse
# Read User input
number = float(input())
# Logic
if number == 0:
    print('zero')
elif number > 0:
    if abs(number) > 1000000:
        print('large', end=' ')
    elif 0 < abs(number) < 1:
        print('small', end=' ')
    print('positive')
elif number < 0:
    if abs(number) > 1000000:
        print('large', end=' ')
    elif 0 < abs(number) < 1:
        print('small', end=' ')
    print('negative')
# Print User output
Basics/number_definer.py
slavcho179/SoftUniCourse
# Read User input
budget = int(input())
payed = 0;

is_overwell = False
command = input()
# Logic
while command != 'End':
    payed += int(command)
    if payed > budget:
        is_overwell = True
        print('You went in overdraft!')
        break
    command = input()

if not is_overwell:
    print('You bought everything needed.')
# Print User output
Basics/shopping.py
slavcho179/SoftUniCourse
# word = input()

# print(word[::-1])

word = input()

for i in range(len(word) - 1, -1 , -1):
    print(word[i], end='')
    # Slice notation
# my_string = 'I\'m the best ever'
# reversed_string = my_string[::-1]
# print(reversed_string)
Basics/word_reverse.py
slavcho179/SoftUniCourse
input_lines = int(input())

is_balance = True
position = ''

for _ in range(input_lines):
    new_line = input()

    if new_line == '(' and position == '':
        position = 'open'
    elif new_line == '(' and position != '':
        is_balance = False

    if new_line == ')' and position == 'open':
        position = ''
    elif new_line == ')' and position != 'open':
        is_balance = False

if is_balance:
    print('BALANCED')
else:
    print('UNBALANCED')
Data Types and Variables/balanced_brackets.py
slavcho179/SoftUniCourse
# Read User input
centuries = int(input())
# Logic
years = centuries * 100
days = int(years * 365.2422)
hours = days * 24
minutes = hours * 60


print(f'{centuries} centuries = {years:.0f} years = {days:.0f} days = {hours:.0f} hours = {minutes:.0f} minutes')
# Print User outputs

Data Types and Variables/centuries_to_minutes.py
slavcho179/SoftUniCourse
# Read User input
character_1 = input()
character_2 = input()
character_3 = input()
# Logic - concatenation of string
string = character_1 + character_2 + character_3
print(string)
# Print User output
Data Types and Variables/chars_to_string.py
slavcho179/SoftUniCourse
# Read User input
first_name = input()
second_name = input()
delimiter = input()
# Logic
print(f'{first_name}{delimiter}{second_name}')
# Print User output
Data Types and Variables/concat_names.py
slavcho179/SoftUniCourse
# Read User input
distance_in_m = int(input())
# Logic
distance_in_km = distance_in_m / 1000
print(f'{distance_in_km:.2f}')
# Print User output
Data Types and Variables/convert_m_to_km.py
slavcho179/SoftUniCourse
key = int(input())
following_lines = int(input())
message = ""

for i in range(following_lines):
    lower_letter = input()
    decrypted_lower = chr(ord(lower_letter) + key)
    message += decrypted_lower

print(message)
Data Types and Variables/decrypting messages.py
slavcho179/SoftUniCourse
from math import ceil
# Read User input
people = int(input())
capacity = int(input())
# Logic
courses = ceil(people / capacity)
print(courses)
# Print User output
Data Types and Variables/elevator03.py
slavcho179/SoftUniCourse
# Read User input
people = int(input())
capacity = int(input())
courses = 0
# Logic
while people > 0:
    people -= capacity
    courses += 1
print(courses)
# Print User output
Data Types and Variables/elevator_whileloop.py
slavcho179/SoftUniCourse
# Read User input
a = int(input())
b = int(input())
# Print it
print('Before:')
print(f'a = {a}')
print(f'b = {b}')
print('After:')
print(f'a = {b}')
print(f'b = {a}')

    # Second option
# num1 = int(input())
# num2 = int(input())

# print('Before:')
# print(f'a = {num1}')
# print(f'b = {num2}')

# num = num1
# num1 = num2
# num2 = num

# print('After:')
# print(f'a = {num1}')
# print(f'b = {num2}')

Data Types and Variables/exchange_integers.py
slavcho179/SoftUniCourse
# Read User input
lost_fights_counts = int(input())
helmet_price = float(input())
sword_price = float(input())
shield_price = float(input())
armor_price = float(input())
# Logic
helmet_repairs = lost_fights_counts // 2
sword_repairs = lost_fights_counts // 3
shield_repairs = lost_fights_counts // (2 * 3)
armor_repairs = shield_repairs // 2
# Total
attributes = helmet_repairs * helmet_price\
             + sword_repairs * sword_price\
             + shield_repairs * shield_price\
             + armor_repairs * armor_price
print(f'Gladiator expenses: {attributes:.2f} aureus')
# Print User output
Data Types and Variables/gladiator_expenses.py
slavcho179/SoftUniCourse
# Read User input
first = int(input())
second = int(input())
third = int(input())
forth = int(input())
# Logic
result = ((first + second) // third) * forth
print(result)
# Print User output
Data Types and Variables/integer_operations01.py
slavcho179/SoftUniCourse
# Read User input
year = int(input())
year_is_special = False
# Logic
while not year_is_special:
    year += 1
    year_as_string = str(year)
    year_is_special = True
    for index in year_as_string:
        if year_as_string.count(index) != 1:
            year_is_special = False
            break

print(year)
# Print User output
Data Types and Variables/next_happy_year.py
slavcho179/SoftUniCourse
from math import floor
# Read User input
group = int(input())
days = int(input())
coins = 0

# Logic
for day in range(1, days + 1):
    if day % 10 == 0:
        group -= 2
    if day % 15 == 0:
        group += 5
    if day % 3 == 0:
        coins -= (group * 3)
    if day % 5 == 0:
        coins += group * 20
        if day % 3 == 0:
            coins -= group * 2
    coins = coins + 50
    coins -= group * 2
each_companion = floor(coins / group)
print(f"{group} companions received {each_companion} coins each.")

# Print User output
Data Types and Variables/party_profit.py
slavcho179/SoftUniCourse
# Read User input
british_pounds = int(input())
# Logic
dollars = british_pounds * 1.31
print(f'{dollars:.3f}')

# Print User output

Data Types and Variables/pounds_to_dollars.py
slavcho179/SoftUniCourse
# Read User input
n = int(input())
is_prime = True
# Logic
for number in range(2, n):
    if n % number == 0:
        is_prime = False

print(is_prime)
# Print User output
Data Types and Variables/prime_number_checker.py
slavcho179/SoftUniCourse
# Read User input
start_index = int(input())
end_index = int(input())
# Logic
for i in range(start_index, end_index + 1):
    if i == end_index:
        print(chr(i))
    else:
        print(chr(i),end=' ')
# Print User output

Data Types and Variables/print_part_of_the_ascii_table.py
slavcho179/SoftUniCourse
# Read User input
number_of_snowballs = int(input())
max_weight = 0
max_time = 0
max_quality = 0
max_value = 0
# Logic
for current_ball in range(number_of_snowballs):
    weight = int(input())
    time = int(input())
    quality = int(input())
    value = (weight / time) ** quality
    if value > max_value:
        max_weight = weight
        max_time = time
        max_quality = quality
        max_value = value

print(f"{max_weight} : {max_time} = {int(max_value)} ({max_quality})")
# Print User output
Data Types and Variables/snowballs.py
slavcho179/SoftUniCourse
# Read User input
n_lines = int(input())
total_sum = 0
# Logic
for char in range(n_lines):
    chr = input()
    total_sum += ord(chr)

print(f"The sum equals: {total_sum}")
# Print User output
Data Types and Variables/sum_of_chars.py
slavcho179/SoftUniCourse
start_index = 97
end_index = 97 + int(input())

for i in range(start_index, end_index):
    for j in range(start_index, end_index):
        for k in range(start_index, end_index):
            print(chr(i) + chr(j) + chr(k))

Data Types and Variables/triple_of_latin_letters.py
slavcho179/SoftUniCourse
# Read User input
following_lines = int(input())
capacity = 255
tank = 0
# Logic
for pour in range(following_lines):
    liters_of_water = int(input())
    if capacity < tank + liters_of_water:
        print('Insufficient capacity!')
    else:
        tank += liters_of_water
print(tank)
# Print User output
Data Types and Variables/water_overflow.py
slavcho179/SoftUniCourse
row = 10

for i in range(1, row + 1):
    for j in range(1, i + 1):
        print(j,end=' ')
    print('')
for i in range(row + 1):
    print('*', end=' ')
print()
for i in range(row, 0, - 1):
    for j in range(i, 0, - 1):
        print(j,end=' ')
    print('')

Patterns/mirrored_pyramid.py
slavcho179/SoftUniCourse
rows = 15

print("*" * rows)
i = (rows // 2) - 1
j = 2

while i != 0:
    while j <= (rows // 2):
        print("*" * i, end='')
        print("_" * j, end='')
        print("*" * i, end='\n')
        i = i - 1
        j = j + 2
Patterns/pattern2.py
slavcho179/SoftUniCourse
word = "Python"
x = ""
for i in word:
    x += i
    print(x[::-1])

Patterns/pattern_python.py
slavcho179/SoftUniCourse
my_string = 'I\'m the best ever'
reversed_string = my_string[::-1]
print(reversed_string)
Slice Notation/reversed_with_slice_notation.py
slavcho179/SoftUniCourse
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
my_sentence = "hellospark"

subset1 = my_list[:3]
print(subset1)

subset2 = my_list[-2:]
print(subset2)

subset3 = my_list[::3]
print(subset3)

subsetx = my_sentence[0:9:1]
print(subsetx)

subsety = my_sentence[0:5]
print(subsety)

subsetz = my_list[-1:-3:-1]
print(subsetz)

subset = my_list[-1::-1]
print(subset)
Slice Notation/test.py
slavcho179/SoftUniCourse
# Read User input
quantity = int(input())
remaining_days = int(input())
# Logic
ornament_set = 2
tree_skirt = 5
tree_garland = 3
tree_lights = 15
christmas_spirit = 0
money_spent = 0
for current_day in range(1, remaining_days + 1):
    if current_day % 11 == 0:
        quantity += 2
    if current_day % 2 == 0:
        money_spent += quantity * ornament_set
        christmas_spirit += 5
    if current_day % 3 == 0:
        money_spent += quantity * (tree_skirt + tree_garland)
        christmas_spirit += 10 + 3
    if current_day % 5 == 0:
        money_spent += quantity * tree_lights
        christmas_spirit += 17
        if current_day % 3 == 0:
            christmas_spirit += 30
    if current_day % 10 == 0:
        christmas_spirit -= 20
        if remaining_days == 10:
            christmas_spirit -= 10
        money_spent += tree_skirt + tree_garland + tree_lights
if remaining_days % 10 == 0:
    christmas_spirit -= 30
print(f"Total cost: {money_spent}")
print(f"Total spirit: {christmas_spirit}")
# Print User output

Syntax Conditional Statements Loops/christmas_spirit.py
slavcho179/SoftUniCourse
# Read User input

# Logic
while True:
    string = input()
    if string == 'End':
       break
    if string == 'SoftUni':
        continue
    for index in string:
        print(index * 2, end='')
    print()
# Print User output

Syntax Conditional Statements Loops/double_char.py
slavcho179/SoftUniCourse
# Read User input
number_of_loaves = 0
colored_eggs = 0
money_spent = 0
budget = float(input())
price_for_1kg_flour = float(input())
# Logic
price_for_1pack_eggs = price_for_1kg_flour * 0.75
price_for_1l_milk = price_for_1pack_eggs * 1.25
loaves = budget / (price_for_1l_milk + price_for_1pack_eggs + price_for_1l_milk / 4)
print(loaves)

# Print User output
Syntax Conditional Statements Loops/easter_bread.py
slavcho179/SoftUniCourse
# Read User input
fruit = input()
size = input()
number = int(input())

# Logic
if size == "small":
  pieces = number * 2
  if fruit == "Watermelon":
    price = 56
  elif fruit == "Mango":
    price = 36.66
  elif fruit == "Pineapple":
    price = 42.10
  elif fruit == "Raspberry":
    price = 20
elif size == "big":
  pieces = number * 5
  if fruit == "Watermelon":
    price = 28.7
  elif fruit == "Mango":
    price = 19.6
  elif fruit == "Pineapple":
    price = 24.8
  elif fruit == "Raspberry":
    price = 15.2

total_price = price * pieces
if 400 <= total_price <= 1000:
    total_price = total_price * 0.85
elif total_price > 1000:
    total_price = total_price * 0.5
print("%.2f lv." % total_price)
# Print User output
Syntax Conditional Statements Loops/energy_booster.py
slavcho179/SoftUniCourse
# Read User input
input_string = input("")
# Logic
capital_indices = [index for index, char in enumerate(input_string) if char.isupper()]
# Print User output
print(capital_indices)
Syntax Conditional Statements Loops/find_the_capitals.py
slavcho179/SoftUniCourse
number = input()

digits = list(number)

digits.sort(reverse=True)

digits_as_str = ''.join(digits)

output = int(digits_as_str)
print(output)
Syntax Conditional Statements Loops/find_the_largest.py
slavcho179/SoftUniCourse
# Read User input
money = float(input())
gender = input()
age = int(input())
sport = input()
# Logic
if gender == "m":
    if sport == "Gym":
        price = 42
    elif sport == "Boxing":
        price = 41
    elif sport == "Yoga":
        price = 45
    elif sport == "Yoga":
        price = 34
    elif sport == "Dances":
        price = 51
    elif sport == "Pilates":
        price = 39
elif gender == "f":
    if sport == "Gym":
        price = 35
    elif sport == "Boxing":
        price = 37
    elif sport == "Yoga":
        price = 42
    elif sport == "Yoga":
        price = 31
    elif sport == "Dances":
        price = 53
    elif sport == "Pilates":
        price = 37

if age < 19:
    price = price * 0.8
#Discount for 19y -
if money >= price:
    print(f"You purchased a 1 month pass for {sport}.")
else:
    difference = abs(price - money)
    print("You don't have enough money! You need $%.2f more." %difference)
# Print User output
Syntax Conditional Statements Loops/fitness_card.py
slavcho179/SoftUniCourse
import math
# Read User input
days = int(input())
food = float(input())

total_food_eaten = 0
cookies_eaten = 0;
d1 = 0
c1 = 0;
# Logic
for i in range (1, days + 1):
    food_eaten_dog = int(input())
    d1 += food_eaten_dog
    food_eaten_cat = int(input())
    c1 += food_eaten_cat
    food_eaten_per_day = food_eaten_cat + food_eaten_dog
    if i % 3 == 0:
        cookie = food_eaten_per_day / 10
        cookies_eaten += cookie
    total_food_eaten += food_eaten_per_day

percent_of_all_food_eaten = total_food_eaten / food * 100
percent_for_dog = d1 / total_food_eaten * 100
percent_for_cat = c1 / total_food_eaten * 100

print("Total eaten biscuits:", "%2.fgr." % math.ceil(cookies_eaten))
print("%.2f" % percent_of_all_food_eaten + "% of the food has been eaten.")
print("%.2f" % percent_for_dog + "% eaten from the dog.")
print("%.2f" % percent_for_cat + "% eaten from the cat.")
# Print User output
Syntax Conditional Statements Loops/food_for_pets.py
slavcho179/SoftUniCourse
# Read User input
counter_of_cups = 0
is_exceed = False
# Logic
event = input()
while event != "END":
    if counter_of_cups >= 5:
        is_exceed = True
    if event == 'coding':
        counter_of_cups += 1
    elif event == 'CODING':
        counter_of_cups += 2
    elif event == 'dog' or event == 'cat':
        counter_of_cups += 1
    elif event == 'DOG' or event == 'CAT':
        counter_of_cups += 2
    elif event == 'movie':
        counter_of_cups += 1
    elif event == 'MOVIE':
        counter_of_cups += 2
    event = input()

if is_exceed:
    print("You need extra sleep")
else:
    print(counter_of_cups)
# Print User output
Syntax Conditional Statements Loops/how_much_coffe_do_you_need.py
slavcho179/SoftUniCourse
# Read User input
divisor = int(input())   # find N that is divisible by <---
boundary = int(input())  # less than or equal to <---
# Logic                  # greater than 0
biggest_divisor = 0;
for i in range(divisor, boundary + 1):
    if i % divisor == 0:
        biggest_divisor = i

print(biggest_divisor)
# Print User output
Syntax Conditional Statements Loops/maximum_multiple.py
slavcho179/SoftUniCourse
# Read User input
rec_in_sec = float(input())
len_in_m = float(input())
sec_per_m = float(input())
# Logic
time_in_s = len_in_m * sec_per_m
delay = (len_in_m // 50) * 30
total_time = time_in_s + delay
total_time = round(total_time,2)

if total_time < rec_in_sec:
    print("Yes! The new record is %.2f seconds." % total_time)
else:
    diff = abs(rec_in_sec - total_time)
    print("No! He was %.2f seconds slower." % diff)
# Print User output
Syntax Conditional Statements Loops/mountain_run.py
slavcho179/SoftUniCourse
# Read User input
first_string = input()
second_string = input()
last_printed_string = first_string
# Logic
for character_index in range(len(first_string)):
    left_side = second_string[:character_index + 1]
    right_side = first_string[character_index + 1:]
    new_string = left_side + right_side
    if last_printed_string != new_string:
        print(new_string)
    last_printed_string = new_string
# Print User output


Syntax Conditional Statements Loops/mutate_strings.py
slavcho179/SoftUniCourse
# Read User input
number_of_orders = int(input())
# Logic
total_price = 0
for i in range(number_of_orders):
    price_per_capsule = float(input())
    days = int(input())
    capsules_per_day = int(input())
    if 0.01 <= price_per_capsule <= 100 and 1 <= days <= 31 and 1 <= capsules_per_day <= 2000:
        order_price = price_per_capsule * capsules_per_day * days
        print(f"The price for the coffee is: $%.2f" % order_price)
        total_price += order_price
    else:
        continue
print(f'Total: $%.2f' % total_price)
# Print User output
Syntax Conditional Statements Loops/orders.py
slavcho179/SoftUniCourse
# Read User input
are_sorted_successfully = True
# Logic
command = input()
while command != 'Welcome!':
    if command == 'Voldemort':
        are_sorted_successfully = False
        print('You must not speak of that name!')
        break
    length_of_name = 0
    name = command
    for char in name:
        length_of_name += 1
    if length_of_name < 5:
        print(f'{name} goes to Gryffindor.')
    elif length_of_name == 5:
        print(f'{name} goes to Slytherin.')
    elif length_of_name == 6:
        print(f'{name} goes to Ravenclaw.')
    elif length_of_name > 6:
        print(f'{name} goes to Hufflepuff.')
    command = input()
if are_sorted_successfully:
    print('Welcome to Hogwarts.')
# Print User output

Syntax Conditional Statements Loops/sorting_hat.py
slavcho179/SoftUniCourse
# Read User input
counter = int(input())
# Logic
for i in range(counter):
    string = input()
    is_pure = True
    for index in string:
        if index == ',' or index == '.' or index == '_':
            is_pure = False
            break
    if not is_pure:
        print(f"{string} is not pure!")
    else:
        print(f"{string} is pure.")
# Print User input
Syntax Conditional Statements Loops/string_pureness.py
slavcho179/SoftUniCourse
# User input
cost_of_hall = float(input())

# Logic
cake = cost_of_hall * 0.2
drinks = cake * 0.55
animator = cost_of_hall / 3

total_sum = cost_of_hall + cake + drinks + animator
print(total_sum)
# Print User output
birthday_party.py
slavcho179/SoftUniCourse
# Read User input
minutes_for_the_day_walk = int(input())
walks_per_day = int(input())
calories = int(input())
# Logic
total_minutes = walks_per_day * minutes_for_the_day_walk
total_calories_burned = total_minutes * 5
if calories * 0.5 <= total_calories_burned:
    print(f"Yes, the walk for your cat is enough. Burned calories per day: {total_calories_burned}.")
else:
    print(f"No, the walk for your cat is not enough. Burned calories per day: {total_calories_burned}.")
# Print User output
cat_walking.py
slavcho179/SoftUniCourse
# Read User input
number_of_bitcoins = int(input())
num_of_chinese_value = float(input())
compromission = float(input())
# Logic
leva = number_of_bitcoins * 1168
dollars = num_of_chinese_value * 0.15
dollars_in_lv = dollars * 1.76
leva += dollars_in_lv
euro = (leva / 1.95)
discount = euro * compromission / 100
total_output = euro - discount

print(round(total_output,2))
# Print User output
change_bureau.py
slavcho179/SoftUniCourse
word = input().lower()
counter = 0
target_words = ('water', 'fish', 'sun', 'sand')

for target in target_words:
    counter += word.count(target)

print(counter)
sum_of_a_beach.py
slavcho179/SoftUniCourse
string = input()
herd = string.split(', ')
if herd[-1] == 'wolf':
    print('Please go away and stop eating my sheep')
else:
    herd_length = len(herd)
    position_of_wolf = herd.index('wolf')
    sheep_in_danger = (herd_length - 1) - position_of_wolf
    print(f'Oi! Sheep number {sheep_in_danger}! You are about to be eaten by a wolf!')
wolf_in_sheeps_clothing.py
slavcho179/SoftUniCourse