(not a print option) if you type "hello" in the option, what happens?
Makes "NameError"
a=3/2. "print(a)"=?
Prints "1.5" (not 3/2)
a="bark". while True: "print(a.upper())"=?
Prints "BARK"
(ignore "numpy" part) "while True: val=np.random.randint(1,10,10). plt.show()"=?
Show plt (val from random places)
Cant add more due to long words.
Go another
What if you type "print()" what does it do?
Prints "_" (Prints Nothing at all)
b="string". "print(b)"=?
Prints "string"
a="nice". "while not a.isprintalbe(): print(a.upper()). else: print(a)"=?
Prints "NICE"
"plt.plot(range(20), color=('green'). plt.show()"=?
Show plt (green line)
What will "Print("hi")" do?
Prints "hi"
b="string". "print(b+"ing")"=?
Prints "stringing"
"bomb=['BANG','BOOM','BAM']. (print*bomb)"=?
Prints "*bomb" (inside "BANG", "BOOM", "BAM")
"plt.title(label='TITLE', fontsize=20, rotation=90, loc='right') plt.show"=?
Shows plt ("TITLE" 20 size, 90 degree, & loc right)
"a=1. print(a)"=?
Prints "1"
a=3+2, b="string". "print(b+a)"=?
TypeError
"import turtle. t=turtle.Turtle(). t.forward(400)"=?
Imports turtle (at a 400 degree angle)
"x=np.orange(0,30,0.1), y=np.cos(x). plt.plot(x, y). plt.show()"=?
Show plt (orange swingle line)
a=3+2, b="string". "print(b+str(a))"=?
Prints "string5"
a=3+2, b+"string". "print(len(b+str(a)))"=?
Prints "7" (what)
"import turtle. t+turtle.Turtle(). t.speed('fast'). t.left(135), t.forwards(1280)"=?
Imports turtle (fast, left(135 degree), & forwards(1280 degree)
Cant add this :(
Go another one