try:
num = int(input("Enter a number: "))
print(12*num)
except ValueError:
print("Please enter a number!")
I wrote my code in python 3.8
Answer:
A. Click on the Function Library group and select a function from the drop-down menu.
B. Click on the Function Library group and Insert Function.
E. Type = into any cell.
F. Click on the formula bar above the cells.
Device Management will help you control 3rd party systems.
Answer:
The answer to the given question is the option "b".
Explanation:
In the question option b is correct. It is given that class bClass is a derived class that inherits the base class that is aClass. In the c++ programming language we use the (:) for the perform in inheritance. "Driving a new class from an old class is called inheritance". and other options are not correct that can be described as follows:
- In option (a) and option(c) the scope resolution operator is used, The scope resolution operator does not use for the single level inheritance it is used for declaring the outline function as well as it is also used for initialized the static variable.That.s why the option(a) and option(c) is incorrect.
- In the option(d) the base class i.e "aClass" inherit the derived class i.e "bClass " this is wrong so this option is incorrect
That's why the option "b" is correct.
import turtle,random
s = turtle.getscreen()
t1 = turtle.Turtle()
t2 = turtle.Turtle()
t3 = turtle.Turtle()
t2.penup()
t2.goto(1,100)
t3.penup()
t3.goto(1,200)
while True:
t1.forward(random.randint(1,10))
t2.forward(random.randint(1,10))
t3.forward(random.randint(1,10))
if t1.xcor() >= 180:
print("Turtle 1 won the race!")
quit()
elif t2.xcor()>= 180:
print("Turtle 2 won the race!")
quit()
elif t3.xcor() >= 180:
print("Turtle 3 won the race")
quit()
I hope this helps!