Posts

Showing posts from January, 2022

Creating Amazing Graphics Using Turtle Library

Image
AMAZING GRAPHICS BY USING TURTLE LIBRARY IN PYTHON.  I am going to create amazing graphics Using Turtle Library in Python. For this, I am using Pydroid 3 in Android, which is basically a IDE for Python in Android. First, we have to import Turtle as "t" which helps us to create graphic in Python by the following code:- import turtle as t Now I am going to set the background colour of the screen by the following command:- t.bgcolor("black") And then the color of turtle by the given code:- t . color("cyan") Now I am making the upcoming commands repeat for 240 times by the following code:- for i in range(240): And then the commands:- t.forward(i) t.left(102) And then write the final code:- t.done() And you can now run the code and see the illusion. The star in the center appears moving. Whole code :- import turtle as t t.speed(100) t.bgcolor("black") t.color("cyan") for i in range(240):     t.forward(i)     t.left(10...

SI Calculator Using Python

Image
CREATING A SIMPLE CALCULATOR USING PYTHON. Here, we are going to learn how to create a SI Calculator using Python. I am using Pydroid 3 in my Android Phone. Firstly, I am creating a loop so that when the user finish his first calculation then he can calculate another without going back to screen. Then I am making three variables ( p, r , t ). In each of the following I am getting input from the user. And then, I had printed " print (f"Your SI for Rs.{p} at the rate of {r}% in time {t}years is "+ str(int(p)* int(r) * int(t) / 100)) "      And then lastly I completed the loop. Full Code:- while True:     p = input("Enter Principal(in rupees)")     r = input("Enter Rate% (only numeric value)")     t = input("Enter time (in years)")     print (f"Your SI for Rs.{p} at the rate of {r}% in time {t}years is "+ str(int(p)* int(r) * int(t) / 100))          calculate_another = input("Want to calculate anoth...

BASIC QBASIC PROGRAMS

Image
BASIC QBASIC PROGRAMS  Here today we will know about some basic Qbasic Programs. CODE FIRST 1)Write a program to enter your name and print it . CLS Input "Enter you name";n$ Print "The name is ";n$ End 2)Write a program to find the area of rectangle. CLS Input " enter the length " ;l Input " enter the breadth " ;b let A = l*b Print" the area of rectangle=" ;a END 3)Write a program to find the area of the triangle. Cls Input " enter the base" ;b Input " enter the height" ;h let T = 1/2*b*h Print" The area of triangle=" ;T End 4)Write a program to find the area of the circle. Cls Input" Enter the radius " ;R Let C=22/7*R^2 Print " The area of circle =" ;C End 5)Write a program to find the area of the square. Cls Input" Enter the number" ;n Let square= n^2 Print" The area of square=" ;Square End 6) Write a program to find the volume of a cube. CLS INPUT"...

Flappy Bird Game

Image
  Flappy Bird Game|Using Pydroid 3 in Android. Here is how to create Flappy Bird Game Using Pydroid 3 in Android 🤯. Steps to be followed:- *1* Go on the Play Store and install  Pydroid 3 . *2* Open and use the source code given below.. Download  Flappy Bird Project .. After installing it on your phone and everything in the same file. Run the Program .   It will Look Something Like this:- Please  Subscribe  to the Channel and Like and Share the video.