Functions & variables
Turn an idea into a small, precise Python program.
A warmer welcome
input() returns text. String methods return a new string; an f-string inserts values into text.
name = input().strip().title()
print(f"Welcome, {name}!")
Split the receipt
Convert numeric text before arithmetic. Formatting with :.2f keeps two decimal places.
bill = float(input())
people = int(input())
print(f"{bill / people:.2f}")