Skip to main content

Create a Holi greetig using python||Holi 2019 || Python || Internet of Things || IoTIAN Innovator


Hello, python lover in this blog post we will create a Holi greeting using python. For creating greeting we will use turtle in Python. It’s very easy and interesting, so let’s start with python code.



For creating greeting in python we will create a three file in python:
1.      alphabet.py
2.      shape.py
3.      main.py



Step 1:    Create an alphabet.py file. In this python file, we will set the coordination of all alphabet (A-Z) caps letters. So it’s easy to print any sentence.
The code is following of  alphabet.py file:



Step2:  create a shape.py file in this python file we will create different functions for different designs for creating different shapes in greeting like a star, square e.t.c.
The code is following for shape.py file:



Step3: At last we will create the main file. This is the main python file in this file all the above two python file (alphabet.py, shape.py) are imported. And we declare the different message and turtle customization in this file. The code is the following:




Step4:  Run the following code and also remember the above three files is saved at the same path and you will have to run only main.py file forsee the output like this:

Congratulation your greeting is done using python.
For more see the working video at





And see the full code at  https://github.com/iotianinnovator/Python_Project/blob/master/Holi%20Greeting.zip


Comments

Popular posts from this blog

How to Install Node-RED in Windows or any OS || Part-1

In this post, we learn how to install Node-RED in a window or any OS. This is a part-1 of this playlist. So, let’s start. There are some instructions to install Node-RED in your machine. Step-1 : Download the Node.JS software from the link. The link is given in the below image: Step-2 : Set the path of Node.js in OS environment variable, for the set, the path sees the instruction is given below images. Step 3: Now check that path is correctly set or not for this: ·          Open the CMD prompt ·          Type the command NPM ·          And if this gives any response then the path is successfully set otherwise check again: Step 4 : Now download the second software mosquitto. For download it sees the instructions in given below image: Step 5: Set the path of mosquito MQTT broker in the OS environment variable. For...

How to get an Internship in IoT Industries and startups.

Hello IoTIANS, In this blog post we are going to give you a brief overview of  how to get an internship?  So if you are new with this word ' INTERNSHIP ' then I suggest you please read this my previous article which is my experience of the internship.👇 https://iotianinnovator.blogspot.com/p/blog-page.html So, now come on the point which is how to get an internship in the IoT field. According to me here are some tips which help you to get an internship easily in any company or startups. 1. First of all, the main and most important thing is your communication should be good either it's in English or Hindi. Mainly the more common language is English so it should be prepared in English instead of Hindi. 2. Your answer should be genuine or True like:      (i) if you have done your project in a team then give the credit to all involved team members and mention him.           (ii)If you know about any hardware or an...