Aslum
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 7937 |
|
|
| 11 Apr 2013 03:16 PM |
Hey, I randomly did something in Python, (I'm learning)
age = input("Please enter your age: ") print ("You are", age , "years old!")
Would that actually work? I have my doubts as it is so small of code.
What it should do:
kind of like this, it shows on a website or so:
"Please enter your age: (YOU CAN TYPE HERE)"
Then when you press enter, it says, "You are _WHAT YOU HAVE TYPED_ years old!"
idk, little help? |
|
|
| Report Abuse |
|
|
Aslum
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 7937 |
|
| |
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Apr 2013 03:21 PM |
| :l Since BAUER seems to only like Lua related script/programming questions here, I'll have to direct you to the next place that I know that has Python programmers maybe willing to answer your question. The Scratch forums. (Don't complain at me people, I do use Scratch and I'm currently trying to get Lua to communicate properly with Scratch). |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2013 03:22 PM |
| I'm still learning too, but I know that that BASICALLY works, it just prints really weird... |
|
|
| Report Abuse |
|
|
nairod7
|
  |
| Joined: 26 Mar 2010 |
| Total Posts: 869 |
|
|
| 11 Apr 2013 03:22 PM |
"Would that actually work?"
Why not testing it by yourself? We're mainly lua scripters there. Maybe some people can help you, but forums where the community is specialized in this language is prefered to get help. |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 11 Apr 2013 03:23 PM |
| Finally someone who uses Scratch... |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 11 Apr 2013 03:24 PM |
| Works fine. I tested it in ST2's REPL and it worked for me. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Apr 2013 03:25 PM |
It's also quite helpful as it gives me a quick way to see how to send messages between client and server; since Scratch has Mesh which is basically client-server communication. Helpful if I'm trying to get Lua to communicate with scratch. Which isn't going too well..
(Darn it Lua, why do you make Squeak error 'message too big; bad size field?' and then break it?!) |
|
|
| Report Abuse |
|
|
Aslum
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 7937 |
|
|
| 11 Apr 2013 03:25 PM |
Nair, I use NotePad ++
Where I can't find the test button.
Whenever I test it, it says it cannot find a page. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Apr 2013 03:26 PM |
Install Python.
Then use IDLE.
print(floodChecked) >2 |
|
|
| Report Abuse |
|
|
Aslum
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 7937 |
|
|
| 11 Apr 2013 03:29 PM |
Mind sending me the link to the page?
Whenever I try to install it, I click on the newest one then there are a ton of download links.
it confuses me. qq |
|
|
| Report Abuse |
|
|
Adam335
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 21464 |
|
|
| 11 Apr 2013 03:32 PM |
http://py thon.or g/downlo ad/ |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Apr 2013 03:32 PM |
I'm currently using Python 2.7, so that's probably the one to download. I'm unsure of the latest version though.
|
|
|
| Report Abuse |
|
|
Adam335
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 21464 |
|
|
| 11 Apr 2013 03:33 PM |
@dig
Same here, I think 2.7 is better than 3. |
|
|
| Report Abuse |
|
|
Aslum
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 7937 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 11 Apr 2013 03:50 PM |
| use codeacademy's output thingy |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2016 06:16 PM |
| I want to join,!!,!,!,!!,!,,,,,,,!!!! |
|
|
| Report Abuse |
|
|
iSymon
|
  |
| Joined: 19 Nov 2011 |
| Total Posts: 1023 |
|
|
| 11 Jan 2016 06:33 PM |
1. Use Python 3 2. That block of code works fine 3. Python is my favorite language (other than C++) to create memory hacks other than that, I don't find no use for it. Not saying Python isn't useful, but that's the only purpose I've learn Python for.
TIP:
Cython is really cool to learn =D |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2016 06:37 PM |
necronoobs
anyways, necro-bumper, how do u make memory hacks make me a triggerbot for crossfire |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2016 06:43 PM |
Works perfect! If you quickly download IDLE it lets you run code without even having a project open to do quick tests like this. |
|
|
| Report Abuse |
|
|
|
| 11 Jan 2016 06:44 PM |
| I got so annoyed because the second I finished with my python tutorials I realized it was old 1.7 and I had syntax errors all over my code. |
|
|
| Report Abuse |
|
|