Hello!
It's always good to understand operators in the language you are working in, so learning them just after datatypes seems like the best time. Day 2 of the 30 days of code concentrated on this subject. Operators are symbols that work with values or variables to produce desired results:
Arithmetic operators
(+) Addition, (-) Subtraction, (*) Multiplication, (/) Division, (%) Modulus, (//) Integer Division
Conditional operators
(>) Greater than, (<) Less than, (>=) Greater than or equal to, (<=) Less than or equal to (==) Equal
Logical operators
(and), (or)
The challenge this week was to find a meals cost by factoring in the price of the meal plus tax and tip. Here’s my solution:
Top comments (0)