Mon premier Script Python

#Mon premier script Python
name = raw_input (‘your name is : ‘)
lastname = raw_input (‘your last name is : ‘)
print ‘welcome  ’+ name +  ’  ’  + lastname
age = int(raw_input (‘Gimi your age body : ‘))
# age response
if age > 18:
age > 18
print ‘that\’s the way I like it ‘
elif age < 18:
age < 18
print ‘go back to your mama !!!’
elif age == 18:
age = 18
print ‘you just did it’
print name + ‘ is ‘ , age , ‘ year old’
# Enter your weight + response
weight = int(raw_input (‘Enter your weight : ‘))
if weight < 60:
weight < 60
print ‘bye bye skinny’
elif weight > 80:
weight > 80
print ‘bye bye faty’
elif weight > 60:
if weight < 80:
print ‘hello handsome’
url = ‘http://mapiga.wordpress.com/’
import webbrowser
webbrowser.open_new_tab(url)
raw_input(“\n\nPress the enter key to exit.”)

2 réponses à Mon premier Script Python

  1. awesome good works dude :) je suis pas sur pourquoi tu a besoin de ‘restate’ la condition

    elif weight > 80:

Répondre

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Twitter picture

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Connexion à %s