So i am doing a HW project with input variables but i have something weird happening for my first input. Secondly Any pointers to the HW project. I will paste the HW instructions here:
Using the turtle commands and functions youve learned so far, write code to draw a
new picture of your choosing that uses at least three different colors and at least three
different shapes.
TIP: The same shape in different sizes counts as different shapes.
Below are some suggestions for pictures you could draw. Do not draw the same picture
you drew in assignment 2C.
Tree - using circles and rectangles
Face - using circles, rectangles, and triangles
House - using squares, rectangles, and triangles
Car - using rectangles, squares, triangles, and circles
Flower - using rectangles, triangles, and circles
Boat - using triangles and rectangles
that is basicly it currently this is how my code looks like and i have run into a slight problem run the code and you will see what i mean.
Using the turtle commands and functions youve learned so far, write code to draw a
new picture of your choosing that uses at least three different colors and at least three
different shapes.
TIP: The same shape in different sizes counts as different shapes.
Below are some suggestions for pictures you could draw. Do not draw the same picture
you drew in assignment 2C.
Tree - using circles and rectangles
Face - using circles, rectangles, and triangles
House - using squares, rectangles, and triangles
Car - using rectangles, squares, triangles, and circles
Flower - using rectangles, triangles, and circles
Boat - using triangles and rectangles
that is basicly it currently this is how my code looks like and i have run into a slight problem run the code and you will see what i mean.
from turtle import * #define the variables hull_width = int(input("Please input the width of the ship: ")) # whole thing or only space_height = int(input("Input the height of the ship: ")) # for the whole thing? pen_color1 =(input("please input the color of the hull: ")) # color for the hull def draw_hull(): penup() goto(100,50) pendown() color(pen_color1) forward(hull_width) left(70) forward(space_height) left(110) forward(hull_width) forward(hull_width) left(110) forward(space_height) left(67) draw_hull()