473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Advice for non programmer looking to learn Python

my profession is completely unrelated to computer science,,
still for no proper reason i wanted to learn programming and chose python.i started out with apress python for absolute beginners(book),then bought o'reilly learning python, i wanted to know if it is possible for a non-professional to learn programming,,if yes, can anyone show me a direction to learn python so that i can fulfill my dream to become a programmer.

thank you
Oct 22 '11 #1
14 3707
bvdet
2,851 Expert Mod 2GB
It sounds like you have made a good start. I learned Python from scratch (still learning!). I think the best way to learn is by doing, so decide what you want a Python script to do for you and go from there. Start simple. There are several good Python resources on the internet with sample code. Post back with any questions. Good luck!
Oct 22 '11 #2
thank you for responding so quickly.
presently,, i have fairly good idea about core data types,functions,module and package imports and some
insight into OOP , i didnt yet cover advanced topics(at least
in my perspective!) like operator overloading,metaclasses, decorators etc.. do i have to have thorough knowledge in all of these topics to start learning GUI , and what is the best GUI tool to begin with?

..and next time i will come back with proper questions in python.
thank you once again.
Oct 22 '11 #3
thank you dwblas
will look into those links
Oct 23 '11 #5
bvdet
2,851 Expert Mod 2GB
You don't need to know the "advanced" topics to venture into GUI programming. There are several good GUI "toolkits" for Python. Most of my experience is with Tkinter. Do a web search and you will find several good resources.
Oct 23 '11 #6
yes, thank you "bvdet".
i tried to understand a simple GUI code in Tkinter,,but frightened by
words like events and event loops.then i understood i have to understand something called event-driven programming.i found this nice
material on the same topic: http://eventdrivenpgm.sourceforge.ne...rogramming.pdf
i think its enough to understand the semantics of GUI programming, to get started.am i right?
Oct 24 '11 #7
bvdet
2,851 Expert Mod 2GB
An event can be a number of things. A mouse click or key release are two comment events. The internet material you found contains helpful information.

An event object is transparently passed to a callback function of an event that was bound to a widget. A button command receives no event object. That was confusing to me at first.
Oct 24 '11 #8
"bvdet" can you elaborate this: "An event object is transparently passed to a callback function of an event that was bound to a widget. A button command receives no event object. That was confusing to me at first. " sorry if iam boring.
i will study some more on this topic so that my posts could be more productive.
thank you "bvdet"
Oct 24 '11 #9
bvdet
2,851 Expert Mod 2GB
Following is a simple example. Widget method bind is used to bind an event to a widget. Tkinter.Button is commonly configured with a command, but an event can be bound to it as well.
Expand|Select|Wrap|Line Numbers
  1. .... snip ....
  2. def handler(event):
  3.     return "some object or value"
  4.  
  5. btn = Tkinter.Button(parent, text=name, padx=5, pady=5,
  6.                      bd=4, bg='#ff0', fg="#00f",
  7.                      activebackground = "#00f",
  8.                      activeforeground = "#ff0",
  9.                      font=("Arial", 16, "bold"),
  10.                      relief='raised', command=None)
  11. btn.pack(side="left", fill=BOTH, expand=1)
  12.  
  13. btn.bind("<ButtonRelease-1>", handler)
  14. .... snip ....
Oct 24 '11 #10
those Tkinter links are very useful for a beginner like me
thank you
Oct 27 '11 #12
Glenton
391 Expert 256MB
If you're looking for little projects to practice on, try Project Euler
Oct 31 '11 #13
sierra7
446 Expert 256MB
Go to www.lynda.com for online tutorial.
Some of the lessons are free but you will have to enrol at a modest price to complete the course.
Oct 31 '11 #14
the online tutorial link is good.
can any one suggest how to get started with Django?
i may sound bit over-ambitious but i am just curious,
thank you for the responses.
Oct 31 '11 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Richard B. Kreckel | last post by:
Hi! I was recently asked what book to recommend for a beginner in C++. I am convinced that you needn't study C in depth before learning C++ (though it helps), but cannot find any beginner's...
8
by: Grrrbau | last post by:
I'm a beginner. I'm looking for a good C++ book. Someone told me about Lafore's "Object-Oriented Programming in C++". What do you think? Grrrbau
7
by: Rensjuh | last post by:
Hello, does someone have / know a good C++ tutorial for beginnners? I would prefer Dutch, but English is also fine. Hoi, heeft / kent iemand nog een goede C++ tutorial voor beginners? Het liefste...
27
by: MHoffman | last post by:
I am just learning to program, and hoping someone can help me with the following: for a simple calculator, a string is entered into a text box ... how do I prevent the user from entering a text...
18
by: mitchellpal | last post by:
Hi guys, am learning c as a beginner language and am finding it rough especially with pointers and data files. What do you think, am i being too pessimistic or thats how it happens for a beginner?...
20
by: weight gain 2000 | last post by:
Hello all! I'm looking for a very good book for an absolute beginner on VB.net or VB 2005 with emphasis on databases. What would you reccommend? Thanks!
5
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
10
by: Roman Zeilinger | last post by:
Hi I have a beginner question concerning fscanf. First I had a text file which just contained some hex numbers: 0C100012 0C100012 ....
10
by: hamza612 | last post by:
I want to start learning how to program. But I dont know where to start. From what I've heard so far c++ is not a good lang. to learn as a beginner because its very complicated compared to others...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.