On this site, you can practice your Python skills for free using different scenarios. Every exercise is in this format:
def solution(parameter_a, parameter_b, ...) -> [type]:
[Your code here...]
return [your solution]
Parameters are values you would normally use the input function to get, and the return keyword gives your solution back. The [type] is the type expected by the function to be returned. You don't have to worry too much about this. This will all make much more sense if you know what functions are, which you can review in the videos or on the trinket course.
Here's a simple example that greets you:
def solution(name) -> str:
return f"Hello, {name}"
You should put classes, helper functions, import statements, etc. outside of the solution function. The solution function is only for the actual code that is going to do stuff during the runtime.
Find Missing Number
Fizz Buzz