Create a function to add two numbers

Modify this function to also subtract the two numbers and return both the sum and the difference

Write Python code that checks if a variable age is 18 or greater. If it is, print 'Access granted.' Otherwise, print 'Access denied.'


Create an if/else statement that checks a variable called temperature. If it's above 80, print 'Hot day!' If it's between 60 and 80, print 'Nice weather.' If it's below 60, print 'Cold day!'


Create a Python list of fruits containing 'apple', 'banana', and 'cherry'. Then, write a 'for' loop that prints each fruit on a new line.

Create a while loop that counts from 1 to 5 and prints each number.