Kearo Kai's profile picture

Published by

published
updated

Category: Web, HTML, Tech

Python Pow

sentence = input('Please enter a sentence to translate: ')

words = sentence.split(' ')

ordsway = []



for word in words:

    ordway = word[1:] + word[0] + 'ay'

    ordsway.append(ordway)

    

print(' '.join(ordsway))


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from graphics import * 

from time import sleep


W, H = 400, 400


win = GraphWin('Punching Game ', W, H)

win.setCoords(0, 0 , 100, 100)

win.setBackground('black')

    


for i in range(10):

    p = win.checkMouse()

    

    im = Image(p, 'pow_small.png')

    im.draw(win)

    sleep(1)

    im.undraw()


    

point = win.getMouse()

win.close()


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )