""" a=int(input("Enter a number")) print(a) """ """ b=float(input("enter a number")) print(b/4) """ """ c=complex(input("Enter a Number")) print(c*) """ """ a=6 b=19 if a>b: print("a>b") elif a<b: 2 else: print("false") """ ACTUAL CODE import math while True: user_input = input("Press 1 to continue, 2 to stop: ") if user_input == '1': print("Enter + for Addition" ) print("Enter - for Subtraction" ) print("Enter * for Multiplication" ) print("enter / for Division" ) print("enter square for obtaining square of a " ) ...
Posts
SMART BOT
- Get link
- X
- Other Apps
Smart Bot In the making of this robot, the following components were used, Apparatus 1)Electrically conductive tape 2) DC Gear Motor*2 3)3.7v lithium batteries*2 4)Switch 5)LDR*2 6)Bc547Transistor Working Principle In this project, the 2 DC gear motors are connected to separate LDR with a transistor. When light falls on the right LDR, the LDR passes current to the respective motor, which is connected to it. Using this principle car can be controlled with 2 smartphones using an MIT-generated app. This app works when 2 phones are connected to each other via Bluetooth. The 1st phone is mounted on the robot so that the first vertical half of the phone is in front of the first LDR and the second vertical half of the phone is in front of the second LDR. When the command forward is given from the 2nd phone to the first phone, both the vertical sides of he phone lit up in white, allowing both the LDR to pass current to their respective motors. When the command stop is given, both the vert...