So… I’ve been learning Python. Here are some scripts.

One

Or intro to strings

# Print info about the script # There must be a better way to do this
print('____' * 14)
print('|{:<55}|'.format('READ ME FIRST, USE ME AFTER..  '))
print('|{:^55}|'.format('Purpose of the script is to ask for two strings,'))
print('|{:^55}|'.format('concatenate them with a space in between,'))
print('|{:^55}|'.format('print the length of the new string,'))
print('|{:^55}|'.format('print the new_string in upper case and'))
print('|{:^55}|'.format('check if it contains the substring "Albus" somewhere.'))
print('____' * 14)
# Ask for two strings
string_1 = input('Enter first string: ')
string_2 = input('Enter second string: ')
space = " "
new_string = string_1 + space + string_2
print('The new string is', new_string)
print('The length of the new string is', len(new_string))
print('To upper case', new_string.upper())
print('Checking if new_string contains "Albus" in there...')
# If nothing is found, returns -1
if new_string.find('Albus') >= 0: # why Albus?
    print('new_string contains "Albus" beginning at position', new_string.find('Albus'))
else:
    print('new_string does not contain "Albus"')

Two

Or kilometers2miles

print('x' * 45)
print('This script converts kilometers to miles.')
print('Try it with int or float type numbers')
print('Round with 2 digits after the decimal point.')
print('Version 0.1')
print('x' * 45)
x_var = float(input('Input the quantity of kilometers to convert to miles, please: '))
y_var = x_var / 0.62
print(x_var, 'kilometer(s) is(are) equal to', round(y_var,2), 'mile(s)')

Three

Or intro to if statements

temp = None
# Ask for temperature value to user
temp = int(input("Enter the temperature, integers only, in Celsius: "))

if temp < 0:
    print("If you go out, you will freeze to death... very fast")
elif temp == 0:
    print("If you go out, you will freeze to death... ")
elif temp > 0 and temp <= 5:
    print("If you go out, you will freeze to death... slowly")
elif temp > 5 and temp <= 10:
    print("You can go out with 3 sweaters.")
elif temp > 10 and temp <= 15:
    print("You can go out with 2 sweaters.")
elif temp > 15 and temp <= 20:
    print("You can go out with a sweater.")
elif temp > 20 and temp <= 25:
    print("You can go out slightly undressed")
elif temp > 30 and temp <= 35:
    print("You can go out naked!")
else:
    print('It is hot!')

Four

Or km2miles_0.2

print('x'*45)
print('This script converts kilometers to miles.')
print('Try it with int of float numbers')
print('Round with 2 digits after the decimal point.')
print('Version 0.2')
print('x'*45)
user_input = input("Enter input value ")
try:
   if "." in user_input :
     x = float(user_input)
     if x >= 0:
         y = x / 0.62
         print(x, 'kilometer(s) is(are) equal to', round(y, 2), 'mile(s)')
     else:
         print(x, "is a negative number. We need positive number(s).")
   else:
     x = int(user_input)
     if x >= 0:
         y = x / 0.62
         print(x, 'kilometer(s) is(are) equal to', round(y, 2), 'mile(s)')
     else:
         print(x, "is a negative number. We need positive number(s).")

except ValueError:
   print("Input is not a number. Try with numbers please.")