Please Subscribe My YouTube Channel

Tuesday, March 14, 2023

How To Make Vote Age Calculator with Python

How To Make Vote Age Calculator with Python


print("Hi!\nWelcome To Voting Pannel")
age=int(input("Enter your age:- "))
if age >=18:
    print("you Are Eligible For Vote")
else:
    print("you Are Not Eligible For Vote")



Watch full video about this blog.


Sunday, March 12, 2023

How to draw Batsman with Python Programming:-

How to draw Batsman with Python Programming:-


import turtle

#initialize method

bat = turtle.Turtle()

#size of pointer and pen
bat.turtlesize(1, 1, 1)
bat.pensize(3)

#screen info
wn = turtle.Screen()
wn.bgcolor("red")
wn.title("BATMAN")

#colour
bat.color("yellow", "black")


#begin filling color
bat.begin_fill()

#turn1
bat.left(90)   # turn pointer direction to left of 90'
bat.circle(50, 85) #draw circle of radius = 50 and 85'
bat.circle(15, 110)
bat.right(180)

#turn 2
bat.circle(30, 150)
bat.right(5)
bat.forward(10) #draw forward line of 10 units

#turn 3
bat.right(90)
bat.circle(-70, 140)
bat.forward(40)
bat.right(110)

#turn 4
bat.circle(100, 30)
bat.circle(30, 100)
bat.left(50)
bat.forward(50)
bat.right(145)

#turn5
bat.forward(30)
bat.left(55)
bat.forward(10)

#reverse

#turn 5
bat.forward(10)
bat.left(55)
bat.forward(30)

#turn 4

bat.right(145)
bat.forward(50)
bat.left(50)
bat.circle(30, 100)
bat.circle(100, 30)

#turn 3
bat.right(90)
bat.right(20)
bat.forward(40)
bat.circle(-70, 140)

#turn 2
bat.right(90)
bat.forward(10)
bat.right(5)
bat.circle(30, 150)

#turn 1
bat.left(180)
bat.circle(15, 110)
bat.circle(50, 85)

#end color filling
bat.end_fill()

#end the turtle method
turtle.done()

Python program :- How to convert Rs to paisa & Days to hours.

Python program :- How to convert Rs to paisa. 



paise = 100
rs = int(input('Enter amount in rupees: '))

result = rs * paise

print(f"{result} paise")


Python program :- How to convert paisa to Rs


rs = 100
paise = float(input('Enter amount in rupees: '))

result = paise / rs

print(result, 'Rs') #you can also type this:- print(f'{result} Rs.')


Python program :- How to convert Days to hours.


days = int(input("Enter amount of days: "))

hours = days * 24

print(f"{hours} hours")