Warning depreciation

Question:
I keep having the warnings about depreciation and I can’t runnning my code no matter what, what should i do please ?
thank you.

Current behavior:

Desired behavior

Repl link:

code snippet

Hey, @LFernandess welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code: