Hi this is my first time trying to code video games in python. So I found a tutorial video that was ran on the same opperating system as mine (mac) but when I wrote the setup in the video:
#Setup
import turtle
wn=turtle.Screen
wn.title("Pong")
wn.bgcolor("black")
wn.setup(width=800, heigth=600)
wn.tracer(0)
#Main game loop
while True:
wn.update()
This error appeared:
AttributeError: 'function' object has no attribute 'title'
Does anybody knows what it means and how to fix it? By the way I am running python 3.10.0