Giter VIP home page Giter VIP logo

pythondance's Introduction

hellitonsm

pythondance's People

Contributors

hellitonsm avatar

Watchers

 avatar  avatar

pythondance's Issues

Fix Skycraper

pythondance/turtle2.py

Lines 1 to 83 in 0578401

#draw a Skycrapper using turtle package
ndim=4
import turtle
for i in range(1,ndim+1):
for g in range(ndim-i):
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.right(90)
turtle.forward(10)
turtle.right(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
for j in range(i):
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.right(90)
turtle.forward(10)
turtle.right(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.width(5)
if i%2==1:
turtle.color("blue")
else:
turtle.color("red")
turtle.forward(120)
turtle.right(90)
turtle.forward(10)
turtle.right(90)
turtle.color("green")
for l in range(ndim):
turtle.forward(10)
turtle.left(90)
turtle.forward(100)
import turtle
def draw_Building():
#Drawing the face of the building
turtle.forward(-100)
turtle.left(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(60)
turtle.right(90)
turtle.forward(70)
turtle.right(90)
turtle.forward(120)
turtle.right(90)
turtle.forward(70)
turtle.right(90)
turtle.forward(50)
turtle.right(180)
turtle.forward(30)
turtle.right(45)
turtle.forward(7.50)
turtle.right(180)
turtle.forward(7.50)
turtle.right(100)
turtle.forward(7.50)
turtle.right(180)
turtle.forward(7.50)
turtle.right(110)
turtle.forward(7.50)
turtle.right(180)
turtle.forward(7.50)
turtle.right(100)
turtle.forward(7.50)
turtle.right(180)
turtle.forward(7.50)
turtle.right(45)
turtle.forward(30)
turtle.right(180)
turtle.forward(50)
draw_Building()

Fix Skycraper

Turtle package

pythondance/turtle.py

Lines 15 to 22 in 0249a12

#draw a Skycraper
x=input()
for i in range(0,x):
for i in range(0,x-i-1):
print' ',
for i in range(0,i+1):
print'*',
print

Use turtle package for draw a Skycrapper using corret python3 code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.