Skip to main content

Posts

Showing posts from September, 2020

Top 5 tips to grow as a programmer

 Hello, Welcome back to my blog today i am going to give you a 5 tips to grow as a programmer if you are a complete beginner. In this blog i am going straight to the point to make it short and interesting for you to read and please drop your suggestion by commenting or ping me in my instagram, i'm always welcome you. 5 tips to grow as a programmer 1.Learn the basic and jump straight to the project building: Here is the first tip i want to give you is to learn the basic or the fundamental of the language and jump straight to the project building because no matter how many time you learn the fundamental of the language you will never get it if you are not building a project. 2.Don't try to learn everything: It may sound strange but it is the reality of a programming world. Let take an example if you choose to learn a python don't try to learn everything about python, choose what do you want to do with python and learn what you need, because if you try to learn everything abou

Build a tic tac toe game using python

 Hello, In this blog i am going to teach you how to create a tic tac toe game using python. If you know the basic of python like function, loops, conditional, list then you are good to go. In this project we are going to create it with a simple format of python without using any import or any object oriented programming. Requirement: 1.Board 2.Player(Computer and a user) 3.Winner Python fundamental needed: 1.Variable 2.List 3.If elif else 4.While 5.Function Here we are going to start A tic tac toe game is a game which has three rows and three column so we need a list which is the size of 3X3 which is nine to store the empty dash for the board Line 4: We assign a game_running to True which mean that the game is still runing when we first start the game. Line 6: Defining a function to display the board when ever we call the display_board function. Line 18: When we first start the game the board will display as empty with dash in it. Output is in line 8 Line 19:  We set the current player