Python Pokemon - Python Class Tutorial for Beginners

Veröffentlicht am: 02 August 2019
auf dem Kanal: Python Marathon
131,099
2.8k

Descargar Código:   / pythonmaraton  

Join Patreon:   / pythonmaraton  
^Downloadable code & more!

Pokemon in Python

Do you want to be the very best like no one ever was? Well today I’m going to show you how to create your very own python Pokemon battle game.

This video is intended for beginners, and will introduce you to python classes. I highly recommend coding along with me. If you are new to this channel please click that subscribe button for python programming content :D

Now we are ready to create a class. If you have never created a class in python before, don’t worry, it’s not hard. A class is kind of like functions of functions; they allow you to create objects that have attributes. In our case we can write a class and use it to create Pokemon objects. Each Pokemon will have its unique attributes, like type and attack power.

If you’re still confused don’t worry, just keep coding with me and I think you’ll get it.

In python to create our pokemon class we write the word class and then the name of the class with a colon. now anything we put indented (inside of this class) will be able to be used by any pokemon objects we create.

Let’s add a function to our class called _init__. This is a built-in function name for classes. The __init_ function will be the initialization. In other words, when you create a new pokemon object, it will be as if you are calling this _init_ function.

This is the place we want to include any attributes that a pokemon initially has. We will try to keep this simple.

And for now, every time you create a function inside your class, make sure the first parameter is self.

This video creates a python class from scratch. This is a Python anaconda tutorial for help with coding, programming, or computer science. These are short python videos dedicated to troubleshooting python problems and learning Python syntax. For more videos see Python Marathon playlist by Rylan Fowers.
⬇️Check out the video clips used in this video (All are intended with fair use):

Pokemon School #2:
   • Pokemon School #2  

Eevee attacks:
   • Eevee attacks  

Dot matrix printer in action:
   • Dot matrix printer in action  

predator handshake:
   • predator handshake  

SWAMPERT IS THE SECOND STRONGEST POKEMON OF ALL TIME:
   • SWAMPERT IS THE SECOND STRONGEST POKE...  

Pokemon Stadium: All Fainting Animations:
   • Pokémon Stadium: All Fainting Animations  

Ash Throwing a Pokéball Episode vs Movie (I Choose You Edition):
   • Video  

Mandrakes in Herbology:
   • Mandrakes in Herbology  

✅Subscribe:    / @pythonmaraton  

🎵Theme Music: https://www.bensound.com/royalty-free...
🎵Pokemon Music (Fair use intended):
Pokemon Red/Blue - Trainer Battle Theme - L'Orchestra Cinematique
Pokemon Theme - Pokemon

#PythonMarathon #LearnPython #PythonTutorial Learn Python:
Python Book (English): https://amzn.to/3HcwgLd
Libro de Python (Español): https://amzn.to/47woAhQ
Affordable Laptop: https://amzn.to/48L30Hb
Machine Learning Book: https://amzn.to/3RNmwfs
Libro de Aprendizaje automatico: https://amzn.to/3RVAFXU
Neural Networks for Babies: https://amzn.to/41SELoi

Video Equipment:
Background Color Light: https://amzn.to/3SgBDzG
Key Light: https://amzn.to/3NYwXLZ
Microphone: https://amzn.to/3H9UK89

Other:
Underrated Cheap Basketball: https://amzn.to/3RVzJTo
Amazing Basketball shorts: https://amzn.to/3vyRDUM


Auf dieser Seite können Sie das Online-Video Python Pokemon - Python Class Tutorial for Beginners mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python Marathon 02 August 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 131,099 Mal angesehen und es wurde von 2.8 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!