473,387 Members | 1,501 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,387 software developers and data experts.

Some problems for exercises

Hi all,

Here we are conducting a QIP program for teachers in other colleges. I am
assigned the job of taking lectures in Python. Although there will be not much
time (exactly speaking : 4 hours) for me to tell them each and everything in
python, I am trying to cover as much as I can. Here are the areas which I am
planning to cover :

1. Basic Language facilities : (Data structures, control structures,
input/output, object oriented programming etc.)

2. A brief (rather very brief) Introduction to GUI programming with Tkinter

3. CGI programming in Python

4. Database programming with PostgreSQL

Although I have prepared the presentation slides etc. I was unable to think of
some good problems for exercises, which can cover the above mentioned topics
well and also by solving them they can learn Python in an easy and fast way.

So, as usual I have turned to you u people for help :). Please suggest me some
such problems and where to look for it.

TIA,
Vivek Kumar

Jul 18 '05 #1
4 1634
Hello Vivek,
1. Basic Language facilities : (Data structures, control structures,
input/output, object oriented programming etc.)

2. A brief (rather very brief) Introduction to GUI programming with Tkinter

3. CGI programming in Python

4. Database programming with PostgreSQL
So, as usual I have turned to you u people for help :). Please suggest me some
such problems and where to look for it.


I suggest an electronic phonebook. The 1'st command line version
should be enough for 1 (open file, go over lines, use regexps, people
as classes and save them using pickle ...). Then add GUI for 2, web
interface for 3 and database for 4.
It is also nice to see a program evolving and you don't have to
explain too much time describing the problem when moving from one area
to the other.

HTH.
Miki.
Jul 18 '05 #2
vi***@cs.unipune.ernet.in fed this fish to the penguins on Sunday 07
December 2003 02:26 am:

4. Database programming with PostgreSQL
OUCH!

Without knowing their backgrounds I could easily fill four hours on
just relational database THEORY (normal forms, etc.) without even
getting down to any particular RDBM software. The looseness of MySQL
might be a touch easier to work with, since it doesn't enforce
referential integrity (try explaining that to newbies).
Although I have prepared the presentation slides etc. I was unable to
think of some good problems for exercises, which can cover the above
mentioned topics well and also by solving them they can learn Python
in an easy and fast way.
In four hours?

Let's see, a local Tkinter front-end for adding/modifying records in
the database, with a CGI back-end to an HTML "on-line ordering form"
accessing the same database. I suspect you'd have to predefine the
database schema -- if they have to do that analysis along with
designing applications for it <shudder>

That combines everything into one consolidated project...

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Bestiaria Home Page: http://www.beastie.dm.net/ <
Home Page: http://www.dm.net/~wulfraed/ <


Jul 18 '05 #3
On Sun, Dec 07, 2003 at 12:22:46PM -0800, Miki Tebeka wrote:
Hello Vivek,
1. Basic Language facilities : (Data structures, control structures,
input/output, object oriented programming etc.)

2. A brief (rather very brief) Introduction to GUI programming with Tkinter

3. CGI programming in Python

4. Database programming with PostgreSQL
So, as usual I have turned to you u people for help :). Please suggest me some
such problems and where to look for it.
I suggest an electronic phonebook. The 1'st command line version
should be enough for 1 (open file, go over lines, use regexps, people
as classes and save them using pickle ...). Then add GUI for 2, web
interface for 3 and database for 4.
It is also nice to see a program evolving and you don't have to
explain too much time describing the problem when moving from one area
to the other.


It seems to me a good idea. Actually first I thought of a HRIS type of
application. But soon I realized that it will be quite big for such a short
time span, and after that I was unable to think of anything easier :(. But I
think that an electronic phonebook will be good enough to cover the topics
and also will be easier to implement.

Thanks Miki,
Vivek Kumar

HTH.
Miki.
--
http://mail.python.org/mailman/listinfo/python-list


Jul 18 '05 #4
On Sun, Dec 07, 2003 at 09:37:20PM +0000, Dennis Lee Bieber wrote:
vi***@cs.unipune.ernet.in fed this fish to the penguins on Sunday 07
December 2003 02:26 am:

4. Database programming with PostgreSQL
OUCH!

Without knowing their backgrounds I could easily fill four hours on
just relational database THEORY (normal forms, etc.) without even
getting down to any particular RDBM software. The looseness of MySQL
might be a touch easier to work with, since it doesn't enforce
referential integrity (try explaining that to newbies).


As I mentioned in my post they are Computer Science Teachers in other colleges.
So we can safely assume that they atleast know these basic things. At least
they have some familiarity with these concepts. And also they have just
attended the classes in RDBMS. There were lectures on Oracle DBA. So, I think
that it will not be a problem with them. Also our main focus will be on Python.
Although I have prepared the presentation slides etc. I was unable to
think of some good problems for exercises, which can cover the above
mentioned topics well and also by solving them they can learn Python
in an easy and fast way.
In four hours?


That means four hours of theory lectures and four hours of practical sessions.
Let's see, a local Tkinter front-end for adding/modifying records in
the database, with a CGI back-end to an HTML "on-line ordering form"
accessing the same database. I suspect you'd have to predefine the
database schema -- if they have to do that analysis along with
designing applications for it <shudder>


Thanks,
Vivek Kumar
> ================================================== ============ <
> wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wu******@dm.net | Bestiaria Support Staff <
> ================================================== ============ <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <


--
http://mail.python.org/mailman/listinfo/python-list


Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gordon | last post by:
Hi, I was wondering if someone could point me in the direction of some online exercises to help me learn to program (in Python). I'm currently working through Magnus Hetland's Practical...
3
by: Frankie Montenegro | last post by:
Hi everyone, I must say that, even though I think that Accelerated C++ by Koenig and Moo is an awesome text, the wording of exercises is very poor. I spend half the time just trying to figure...
14
by: John Salerno | last post by:
Here's an exercise I was doing to guess a number from 1-100. Just for fun (ha ha) I decided to add some error checking too, and now when I run it, the DOS prompt flashes real quick and disappears....
0
by: Ben Edwards (lists) | last post by:
Have been working through Dive Into Python which is excellent. My only problem is that there are not exercises. I find exercises are a great way of helping stuff sink in and verifying my...
0
by: tjsailor | last post by:
I'm recently reading this book, and I really think exercises in this book is rather good, but from nowhere can I get the solutions to the exercises, can anybody share his or her if he or she got...
8
by: jopy887 | last post by:
Hey people, Does someone know a good site for C exercises? For beginners.. Jonathan
10
by: osp | last post by:
hi every one viewing this post I guess i am having a grand start learning c++...where do i get good prolems that are not as tough as the acm problems ? please HELP ...
2
by: dev_15 | last post by:
Hi, Does anyone know of any good links to sites etc which have exercises where you need to find out cause of runtime errors in a given piece of code. I am a bit weak in this area. Are there any...
1
by: TheTamdino | last post by:
I am currently reading Beginning PHP and MySQL 5: From Novice to Professional, Second Edition by W. Jason Gilmore. This is an excellent book, but it has no exercises in it. I'm the kind of person...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.