This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-12-19 17:37:24

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Python help!

How do you make the equivalent to http://block.site90.net/%5Bask%20%5B%5D%20and%20wait%5D in python 2.7?


◕‿◕

Offline

 

#2 2011-12-19 17:39:25

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Python help!

raw_input("Question here")

Offline

 

#3 2011-12-19 17:40:08

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: Python help!

Magnie wrote:

raw_input("Question here")

how do you make it so it stores the answer as a var
and dosent say it out loud

Last edited by flashgocrazy (2011-12-19 17:40:37)


◕‿◕

Offline

 

#4 2011-12-19 17:40:52

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Python help!

flashgocrazy wrote:

Magnie wrote:

raw_input("Question here")

how do you make it so it stores the answer as a var

var = raw_input("Question here")

same as 3 I would assume?

Doesn't show what the user types? That requires another module...

Last edited by Magnie (2011-12-19 17:41:47)

Offline

 

#5 2011-12-19 18:07:45

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Python help!

Magnie wrote:

flashgocrazy wrote:

Magnie wrote:

raw_input("Question here")

how do you make it so it stores the answer as a var

var = raw_input("Question here")

same as 3 I would assume?

Doesn't show what the user types? That requires another module...

Code:

import getpass
passwd = getpass.getpass("Enter your password: ")

Fork Clamor on GitHub!

Offline

 

#6 2011-12-20 17:38:41

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Python help!

try this:
answer = raw_input("What's your name?")


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#7 2011-12-20 21:03:39

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Python help!

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer