• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 21:31
CET 03:31
KST 11:31
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
BGE Stara Zagora 2026 announced14[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2
StarCraft 2
General
BGE Stara Zagora 2026 announced Information Request Regarding Chinese Ladder SC: Evo Complete - Ranked Ladder OPEN ALPHA When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest RSL Revival: Season 3 Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ FlaSh's Valkyrie Copium BW General Discussion A cwal.gg Extension - Easily keep track of anyone Which season is the best in ASL?
Tourneys
[Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET [BSL21] RO16 Group C - Saturday 21:00 CET Small VOD Thread 2.0
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Should offensive tower rushing be viable in RTS games? Path of Exile Nintendo Switch Thread The Perfect Game Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread Things Aren’t Peaceful in Palestine Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
Formula 1 Discussion 2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2397 users

Learning a programming language - Help! - Page 2

Blogs > billy5000
Post a Reply
Prev 1 2 All
EscPlan9
Profile Blog Joined December 2006
United States2777 Posts
Last Edited: 2011-06-11 06:35:24
June 11 2011 06:35 GMT
#21
I completely agree with others saying you will enjoy it best by DOING it. Start a new program. Just comment in whatever you want to accomplish. I remember one of my first programs was a bunch of small tasks that you can choose from in a console menu:

1) Do task 1
2) Task 2
...
0) Quit

etc

It didn't matter so much what my tasks did. It's more that I enjoyed the process of figuring out for myself what needs to be done.
Undefeated TL Tecmo Super Bowl League Champion
Soulfire
Profile Joined September 2010
United States237 Posts
June 12 2011 03:55 GMT
#22
I also just started learning Python, but appear to have run into an issue that prevents me from doing so. Hopefully someone here can help.

Basically, I'm unable to run Python scripts. I create a text document, enter some code, rename it xxx.py, and associate all .py files with the interpreter, python.exe, as instructed. However, when I open/run the .py file, all I get is the empty python command line (aside from version info, etc), as you would get from simply running python.exe.

Anyone?
◕ http://kiwiclonearmy.sadlife.net/ ◕
zoombini
Profile Joined June 2010
United States67 Posts
June 12 2011 04:59 GMT
#23
On June 12 2011 12:55 Soulfire wrote:
I also just started learning Python, but appear to have run into an issue that prevents me from doing so. Hopefully someone here can help.

Basically, I'm unable to run Python scripts. I create a text document, enter some code, rename it xxx.py, and associate all .py files with the interpreter, python.exe, as instructed. However, when I open/run the .py file, all I get is the empty python command line (aside from version info, etc), as you would get from simply running python.exe.

Anyone?

Why don't you just use Python's IDLE instead? All you have to do is press F5 to run your code.
Soulfire
Profile Joined September 2010
United States237 Posts
Last Edited: 2011-06-12 06:50:07
June 12 2011 06:05 GMT
#24
On June 12 2011 13:59 zoombini wrote:
Show nested quote +
On June 12 2011 12:55 Soulfire wrote:
I also just started learning Python, but appear to have run into an issue that prevents me from doing so. Hopefully someone here can help.

Basically, I'm unable to run Python scripts. I create a text document, enter some code, rename it xxx.py, and associate all .py files with the interpreter, python.exe, as instructed. However, when I open/run the .py file, all I get is the empty python command line (aside from version info, etc), as you would get from simply running python.exe.

Anyone?

Why don't you just use Python's IDLE instead? All you have to do is press F5 to run your code.


Awesome, I didn't even know that was there. Do you by chance know what the .exe for the IDLE GUI is, so that I can set windows to open all .py files with it with a simple double click on the .py file? I can only find the shortcut to it, and it doesn't seem to direct to anything in the Properties. Likely there isn't one at all and I'm dumb, and if that's the case, is it possible to set the default program for .py files to that IDLE GUI at all?

Thanks again.

EDIT: Nevermind, found it. It's a well-hidden file named idle.pyw.

EDIT 2: Actually, still can't tell .py files to open with IDLE. So as of right now the only way to run scripts is through a command in the command line/the IDLE interface (File --> Open). Anyone know how to convince Windows to open .py files into command line, IDLE, anything?
◕ http://kiwiclonearmy.sadlife.net/ ◕
zoombini
Profile Joined June 2010
United States67 Posts
June 12 2011 21:14 GMT
#25

EDIT 2: Actually, still can't tell .py files to open with IDLE. So as of right now the only way to run scripts is through a command in the command line/the IDLE interface (File --> Open). Anyone know how to convince Windows to open .py files into command line, IDLE, anything?


Try right click on the .py file and click Edit with IDLE.
Soulfire
Profile Joined September 2010
United States237 Posts
June 12 2011 22:16 GMT
#26
On June 13 2011 06:14 zoombini wrote:
Show nested quote +

EDIT 2: Actually, still can't tell .py files to open with IDLE. So as of right now the only way to run scripts is through a command in the command line/the IDLE interface (File --> Open). Anyone know how to convince Windows to open .py files into command line, IDLE, anything?


Try right click on the .py file and click Edit with IDLE.


That's what I've been doing, but I get an error message when I try to open with IDLE, something about the .py file "not being a valid Win32 application". When I try to open with python.exe in the same way, it just doesn't open the .py file and just starts an empty python command line. Getting either of these to work would be fine for me.
◕ http://kiwiclonearmy.sadlife.net/ ◕
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
Next event in 6h 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft438
SpeCial 154
RuFF_SC2 116
StarCraft: Brood War
Calm 3821
Artosis 817
Noble 33
Bale 19
Dota 2
monkeys_forever511
League of Legends
JimRising 492
Other Games
summit1g22324
shahzam561
Mew2King130
Maynarde116
Organizations
Other Games
gamesdonequick2107
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH156
• Hupsaiya 78
• davetesta41
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• RayReign 11
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22227
League of Legends
• Doublelift4702
• Rush816
Other Games
• Scarra2618
Upcoming Events
Replay Cast
6h 29m
Wardi Open
9h 29m
Monday Night Weeklies
14h 29m
StarCraft2.fi
14h 29m
Replay Cast
21h 29m
Wardi Open
1d 9h
StarCraft2.fi
1d 14h
PiGosaur Monday
1d 22h
Wardi Open
2 days
StarCraft2.fi
2 days
[ Show More ]
Replay Cast
2 days
The PondCast
3 days
Replay Cast
3 days
Korean StarCraft League
5 days
CranKy Ducklings
5 days
SC Evo League
5 days
BSL 21
5 days
Sziky vs OyAji
Gypsy vs eOnzErG
Sparkling Tuna Cup
6 days
BSL 21
6 days
Bonyth vs StRyKeR
Tarson vs Dandy
Liquipedia Results

Completed

Proleague 2025-11-28
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
Light HT
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.