area of the rectangle in python.

Опубликовано: 24 Октябрь 2024
на канале: CodeWithShahrukh
279
like

area of the rectangle in python || print area of rectangle in python || write a program to find the area of a rectangle in python || write a program to find area of a rectangle || write a program area of rectangle.

‪@CodeWithShahrukh‬

#CodeWithShahrukh
#shorts
#shortvideo
#youtubeshorts
#shortsyoutube
#viral
#viralshort
#python
#pythonforbeginners


import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
GPIO.setup(29,GPIO.OUT)
GPIO.setup(31,GPIO.OUT)
GPIO.setup(33,GPIO.OUT)
GPIO.setup(35,GPIO.OUT)
while(1):
GPIO.output(7,False)
print("LED 1 IS OFF")
time.sleep(1)
GPIO.output(29,False)
print("LED 2 IS OFF")
time.sleep(1.5)
GPIO.output(31,False)
print("LED 3 IS OFF")
time.sleep(2)
GPIO.output(33,False)
print("LED 4 IS OFF")
time.sleep(2.5)
GPIO.output(35,False)
print("LED 5 IS OFF")
time.sleep(3)

GPIO.output(7,True)
print("LED 1 IS FINALLY ON")
time.sleep(3.5)
GPIO.output(29,True)
print("LED 2 IS FINALLY ON")
time.sleep(4)
GPIO.output(31,True)
print("LED 3 IS FINALLY ON")
time.sleep(4.5)
GPIO.output(33,True)
print("LED 4 IS FINALLY ON")
time.sleep(5)
GPIO.output(35,True)
print("LED 5 IS FINALLY ON")
time.sleep(5.5)
GPIO.cleanup()