Getting Input
Part of the Fundamentals section of Coddy's Python journey. Lesson 31 of 77.
Challenge
BeginnerKeep the welcome message you printed in the previous step (Bill Split Calculator). After it, read two numbers (float) from the user: the bill amount first, then the tip percentage.
Read them with a plain input(). Do not pass a prompt text to input(): the prompt would be printed too and the output would no longer match.
Try it yourself
print("Bill Split Calculator")All lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Logical Operators Part 47Bill Split Calculator
Welcome MessageGetting Input8Loops
For LoopWhile LoopBreakContinueRecap - FactorialThe Range FunctionNested LoopRecap - Dynamic Input3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsRecap - Simple MathComparison Operators9Functions
Declare a FunctionArgumentsReturnRecap - Sigma FunctionRecap - Validation FunctionDefault Values12Iterating Over Sequences
Iterating Over ElementsThe Enumerate FunctionIterating Over Strings Part 1Iterating Over Strings Part 2Practice on your own: Online Python compiler