• We've upgraded our forums. Please post any issues/requests in this thread.

Im still learning python and I need a little help

Joined
Dec 28, 2010
Messages
95 (0.04/day)
Likes
4
Processor AMD Athlon II X3 445 Rana
Motherboard BIOSTAR Group A780L3L
Memory 4.00 GB Single-Channel DDR3 ( forgot the company)
Video Card(s) ATI Radeon HD 4600 Series (Sapphire/PCPartner)
Storage 313GB Western Digital (SATA),195GB SAMSUNG SAMSUNG ( SATA)
Display(s) AOC 931W
Case forgot lol
Audio Device(s) Realtek High Definition Audio
Power Supply 500psu ( came with case )
Software MS Windows 7 Home Premium 64-bit SP1
#1
I started learning python earlier this month as my first programing language and I need something that will help me memorize all things I learned. Do you guys no of anything like a test or some sort of program I could start making to help me master this or at least become better. So far I only made a few small program to preform system commands Or to record information
 
Joined
Jul 26, 2010
Messages
1,655 (0.61/day)
Likes
729
Location
Philly
System Name Primary Rig
Processor Phenom II X4 B50 @ 3.7GHz
Motherboard Biostar TA790GX 128M
Cooling Sunbeam CR-CCTF 120mm , 6x120mm, MOS-C1
Memory 2x2GB Kingston HyperX 1066 @ 800 4-4-4-12
Video Card(s) Sapphire HD 5830 800/1000 @ 885/1225
Storage 320GB, 400GB, 500GB, 1.5TB
Display(s) Hannspree HF259
Case CM 690
Power Supply OCZ 850W
Benchmark Scores 3Dmark06: 18545/5219 CPU Mark 7.0: 3911.2 Cinebench R10: 11826/3359 x264 HD 2.0: 75.6/23.9
#3
IMO it's a waste of time to memorize most things in programming. In python you can just open up a python terminal and run "help(<function/class>)" which will give you info on the arguments and return type. There are a bunch of things that are annoying to remember so do a google search for "Python Cheat Sheet" and I'm sure tons of stuff will come up.

A couple more tips:
Always save your code and reference it when writing new code.
Since Python is your first language you should concentrate on learning good programming structure and style.
 
Joined
May 21, 2009
Messages
4,966 (1.59/day)
Likes
1,511
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
#4
agreed with both, streetfighter's tips are key.

also:
start documenting now! it's a lot better to have it the first time you need it, than to learn by mistake.
also, documenting your code helps you to understand what each tiny bit does, and how they work together. that makes learning it easier.

and again in addition to streetfighter's first point, don't try to memorize things so much as make sure you do them right as much as possible. if that means reading a manual entry do it. eventually you will begin to learn all of the things you use often. that's your base. from there it is a hundred times easier to add "vocabulary". but it's more important to understand convention and structure first.

google is your friend as well. I still keep a browser open with 20 tabs every time i code something, as reference is key. don't try to limit yourself to your brain. the internet is a tool!
 
Joined
Dec 28, 2010
Messages
95 (0.04/day)
Likes
4
Processor AMD Athlon II X3 445 Rana
Motherboard BIOSTAR Group A780L3L
Memory 4.00 GB Single-Channel DDR3 ( forgot the company)
Video Card(s) ATI Radeon HD 4600 Series (Sapphire/PCPartner)
Storage 313GB Western Digital (SATA),195GB SAMSUNG SAMSUNG ( SATA)
Display(s) AOC 931W
Case forgot lol
Audio Device(s) Realtek High Definition Audio
Power Supply 500psu ( came with case )
Software MS Windows 7 Home Premium 64-bit SP1
#5
How you guys are helpful, I have been cramming my brain with things That I dont even remember and hour later . thank you so much.
 

Kreij

Senior Monkey Moderator
Staff member
Joined
Feb 6, 2007
Messages
13,817 (3.48/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
Processor Intel Core 2 Quad QX9650 Extreme @ 3.0 GHz
Motherboard Asus Rampage Formula
Cooling ZeroTherm Nirvana NV120 Premium
Memory 8GB (4 x 2GB) Corsair Dominator PC2-8500
Video Card(s) 2 x Sapphire Radeon HD6970
Storage 2 x Seagate Barracuda 320GB in RAID 0
Display(s) Dell 3007WFP 30" LCD (2560 x 1600)
Case Thermaltake Armor w/ 250mm Side Fan
Audio Device(s) SupremeFX 8ch Audio
Power Supply Thermaltake Toughpower 750W Modular
Software Win8 Pro x64 / Cat 12.10
#6
I agree and disagree with some of the comments.

Learning how to do something is more important than rote memorization as it will allow you to adapt to unfornseen problems in your code. As was said, you can always look things up in either reference books or online if you don't quite remember the exact use or syntax of a particular API's construction or one of its methods.

There are, however, some things that you will want to memorize (and you will through repetition of use), such as all of the operators and how they function when used on different data types.

Take the time to learn how to use a debugger effectively. That will end up being your most useful tool when your work gets more and more complex. Using output statements to show variable values during execution only goes so far and becomes viturally useless for debugging things like an exception being thrown because there is a class initialization type mismatch.

Never comment your code. If it is complex and took a lot of effort for you to write it should be hard for someone else to understand. :D
 
Joined
May 21, 2009
Messages
4,966 (1.59/day)
Likes
1,511
System Name i7-PC / HTPC / iMac
Processor i7 3820 / Phenom II 940
Motherboard GIGABYTE G1.ASSASSIN2 / M3A79-T Deluxe
Cooling Corsair Hydro H100i / Scythe II (HS only)
Memory G.SKILL Trident X Series 8GB (2 x 4GB) DDR3 1600mhz / 4GB DDR2 1066 (@800) Corsair Dominator
Video Card(s) GB Radeon HD 7950s 3GB / GB Radeon HD 7950s 3GB
Storage 2x 80GB Intel X-25, 2x600gb SATA, 1x1tb 5400RPM storage /1x600GB, 3x500GB,1x160,1x120 SATA
Display(s) 1x 27" Yamakasi / Vizio 42" HDTV
Case Lian Li Lancool PC-K58 / Antec 900
Audio Device(s) HT Omega Striker 7.1 / Onboard and HDMI from ATi Card
Power Supply PC Power & Cooling 750W / 610W
Software Ubuntu / Windows 8.1 Pro / OS X / PHPStorm / Gaming
#7
Never comment your code. If it is complex and took a lot of effort for you to write it should be hard for someone else to understand. :)
:) you could always remove comments and minify the production version :) i'm sure you could get even more creative...


and 100% agree on the operators. they are used throughout a language in many many situations, they are the first thing you want to focus on learning well.