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

SANTA CLAUS' HAT USING PYTHON

Hello IoTIAN , In this video we create a SANTA Claus’ HAT using python in this we use turtle library for drawing the steps are following for creating Santa Hat.   Import TURTLE library       Import shapes file which already built        Import  RANDOM library        Give the name to your turtle pen        Set the speed of your pen        Choose background color        Draw a circle in which area you want to create a cap        Create a red color triangle        Set different circle with different radius and coordination to convert it into a cap    Hide the turtle using myPen.hideturtle() The Code in this give a link for the following Santa HAT          https://github.com/iotianinnovator/Python_Project         Comment if yo...

PRE-ORDER: IoT-A(Masterboard)

Beta Version of PRE-ORDER IoT-A(Masterboard) A single device solution to monitoring and automation:  Features: Convenient for data monitoring and handling. Compatible with major IoT device for remote control and automation. Completely Open Source Cost Effective. One masterboard for different IoT Application. Controllable by web and android both

IoT Projects

Smart Plant Irrigation IoT Smart Plant Irrigation Device Overview It's very useful in Home and for Environment. It’s automatically adjust the water schedule to actual condition of the site. You can also control this device from anywhere in the world using BLYNK app. Device Working It’s fully automated. it’s automatically schedule the water according to the moisture in soil.It’s an IoT device so it send live device data to your Smart Phone. You can also see the device data in csv form. You can control it from anywhere in the world. Applications Useful in agriculture and also for environment Save Plant Save Time. Demo Video