Python guessing game - Python for absolute beginners course - Python για Αρχάριους

preview_player
Показать описание
In this Python for beginners tutorial we are going to learn the following:
How to create a Python guessing game using the random module.

In this video, we are going to develop a simple python guessing game to practice everything we have learned so far. That’s the game we are going to develop.

At first the game prints the message: "Welcome to the guessing game!" and then the messages: "I have chosen a number between 1 and 100 and you have to guess it. Good luck!”

Then the computer draws a random number between 1 and 100 for the user to guess. Then it asks the user to guess that number.
For each number the user guesses, the game prints a message indicating whether the user’s guess is too high or too low.
If the player successfully guesses the number, the game displays a win message along with the number of tries.

It's a simple game that won't take us more than 5 minutes to create. Let's get started.

Python για Αρχάριους

#pythoncourse #pythontutorial #programmingwithnick
Рекомендации по теме
Комментарии
Автор

It will help you memorize all the stuff we discuss in this lesson.

programmingwithnick
Автор

Great video as always 👍
Thanks for sharing your expirence with all of us 👍 :-)

avejst
Автор

Thank you Nick for the time and effort you have put into these tutorials. I have learnt a lot, I just hope I can remember it. I was learning C++ for the Arduino that I have. It is amazing how simpler and more logical Python is. It is unfortunate that I can't use it on the Arduino. Are you planning on any C++ tutorials :o)

djonestone
Автор

Γειά και παλι
Νίκο Ο Κωνσταντίνος ο φίλος μου τι κάνει?

PKIsAPro