Print ("helloWorld")
Name=input ("what' s your name:")print("{},it are good for You to study phython! ". Format (name))
a=input ( " a: " ) b =input ( " 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 ("r=") s=3.14*float (r) *float (r)print(float (s))
Import turtleturtle.shape ('turtle') turtle.speed (5) Turtle.color ( 'red') turtle.circle (turtle.circle) Turtle.circle (100)
import Turtleturtle.forward ( 200 Span style= "COLOR: #000000" >) turtle.right ( 144 200) turtle.right ( 144 200) turtle.right ( 144 200) turtle.right ( 144 200) Turtle.right ( 144)
import Turtleturtle.shape ( " turtle " Span style= "COLOR: #000000" >) turtle.speed ( 50 " green " ) Turtle.forward ( 200 144) Turtle.forward ( 200 144) Turtle.forward ( 200 144) Turtle.forward ( 200 144) Turtle.forward ( 200 144)
Python First lesson