Print ("HelloWorld")
Name = input ( " Enter name ")print("{} Students, study hard, day up ") . Format (name))
a=input ( " Please enter a: " ) b =input ( " Please enter B: " ) print (float (a) +float (b))
a=input ( " a= " ) b =input ( " b= " ) c =input ( " c= " ) L = (float (a) +float (b) +float (c))/2d = Float (l) * (float (l)-float (a)) * (float (l)-float (b)) * (float (l)-float (c)) s = Float (d) **0.5print (float (s))
R=input (" please input r=") s=3.14*float (r) *float (r)print(float (s))
Import turtleturtle.circle (turtle.circle)turtle.circle(()turtle.circle ( 100)
Import Turtle for in range (5): turtle.forward (+) turtle.right (144)
Import Turtleturtle.fillcolor ("yellow") Turtle.begin_fill () for in range (5): turtle.forward (+) turtle.right (144) Turtle.end_fill ()
Python input and output exercises, arithmetic exercises, turtle preliminary exercises