<jupyter_start><jupyter_text>28. Divination, part 1<jupyter_code>from random import randint
from time import sleep

user_attempt = int(input('I will think in a number that is between 0 and 5. Try to guess it: '))

print('Processing...')
sleep(2)

if user_attempt == randint(0, 5):
    print("Yeah. That's right!")
else:
    print("Try again!")<jupyter_output><empty_output><jupyter_text>29. Traffic ticket<jupyter_code>car_velocity = float(input('How many kilometers per hour was the driver? '))

if car_velocity > 80:
    tt_cost = (car_velocity - 80) * 7
    print('Traffic ticket cost: R${:.2f}'.format(tt_cost))
else:
    print('No problem.')<jupyter_output><empty_output><jupyter_text>30. Even or odd<jupyter_code>int_input = int(input('Enter an integer: '))

print("Even") if (int_input % 2) == 0 else print("Odd")<jupyter_output><empty_output><jupyter_text>31. Ticket price<jupyter_code>distance = int(input('How far is your trip (kilometers)? '))

if distance < 200:
    price = distance * 0.5
else:
    price = distance * 0.45

print(f'Price: R${price:.2f}')<jupyter_output><empty_output><jupyter_text>32. Leap year<jupyter_code>from datetime import date

year = int(input('Enter a year: '))
if year == 0:
    year = date.today().year

if year % 4 == 0:
    print('Leap year')
else:
    print('Normal year')<jupyter_output><empty_output><jupyter_text>33. Which one is higher?<jupyter_code>int_amount = int(input("Enter the amount of numbers to be compare: "))

int_list = []
for integer in range(int_amount):
    int_input = int(input("Enter the {}° integer: ".format(integer + 1)))
    int_list.append(int_input)

print("The higher number is:", max(int_list))
print("The lower number is:", min(int_list))<jupyter_output><empty_output><jupyter_text>34. Triangles, part 1<jupyter_code>list1 = []
for i in range(1, 4):
    list1.append(int(input("Enter the length of the {}° side (meters): ".format(i))))

a = int(list1[0])
b = int(list1[1])
c = int(list1[2])

if (abs(b-c) < a < (b+c)) and (abs(a-c) < b < (a+c)) and (abs(a-b) < c < (a+b)):
    print('Yeah, we can made it.')
else:
    print('No way.')<jupyter_output><empty_output><jupyter_text>35. Salary adjustment<jupyter_code>salary = float(input("Employee's salary: R$"))

if salary > 1250:
    new_salary  = salary * 1.1
else:
    new_salary = salary * 1.15

print('Who earned R${:.2f}, now earns R${:.2f}'.format(salary, new_salary))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16303005351996708, 'fraction_numerical': 0.026759983532317826, 'mean_word_length': 5.246786632390745, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '295594', 'license': 'MIT', 'n_tokens_mistral': 973, 'n_tokens_neox': 915, 'n_words': 220, 'path': 'Lesson 10 - Conditionals, part 1/Exercises.ipynb', 'repo_name': 'tofolo17/PythonCeV', 'size': '2429'}