Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Sarfraaz Ahmed
Hello Matthew,

Although, its not for Graphics, I have noticed that
http://www.pythontutor.com is a good place that can come in handy for
students who are new to programming.

It gives a graphical view of how memory is allocated for variables and how
functions are invoked in a program.

I have seen students strengthen their fundamental programming concepts
through the visual representation of code flow on this website.

You could try this as well.

On Wed, Dec 5, 2018 at 1:54 PM Matthew Polack <
matthew.pol...@htlc.vic.edu.au> wrote:

> Hi All,
>
> We're using Python with our Year 9 and 10 students to teach programming.
> I've started with basic console programming...doing simple games like a
> quiz game etc.
>
> Students always seem to like 'graphics'..one of the reasons things like
> 'Scratch' are so popular in schools is because of  the ready made GUI.
>
> My concern with things like 'Scratch' and 'Game Engines' is that perhaps
> kids can miss out on  learning core fundamentals...but can appreciate some
> visuals can be very motivating...
>
> Can anyone recommend any ways of integrating 'graphics' but in a simpler
> way.
>
> I've had some experience with TKinter...(which is still quite a jump for
> beginners)also can see that 'Pygame' might offer some of this...
>
> also have seen some tutorials on Udemy that encourages using the 'Turtle'.
>
> Does anything else come to find for helping kids stay engaged when they
> start to get tired of just text based console programming?
>
> Thanks for any suggestions.
>
>
> Matthew Polack | Teacher
>
> --
> **Disclaimer: *Whilst every attempt has been made to ensure that material
> contained in this email is free from computer viruses or other defects,
> the
> attached files are provided, and may only be used, on the basis that the
> user assumes all responsibility for use of the material transmitted. This
> email is intended only for the use of the individual or entity named above
> and may contain information that is confidential and privileged. If you
> are
> not the intended recipient, please note that any dissemination,
> distribution or copying of this email is strictly prohibited. If you have
> received this email in error, please notify us immediately by return email
> or telephone +61 3 5382 2529** and destroy the original message.*
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


-- 
Thanks
   -- Sarfraaz Ahmed
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Regex for Filesystem path

2018-11-06 Thread Sarfraaz Ahmed
Hello,

There are specific operating system, path related modules in Python for
handling these scenarios.

You could try looking at os.path module.

On Tue, Nov 6, 2018 at 11:16 PM Asad  wrote:

> Hi all ,
>
> Can you provide some advice and code for the following problem :
>
> I have a logfile to check for errors :
>
> /a/b/c/d/test/test_2814__2018_10_05_12_12_45/logA.log
>
> f3 = open ( r"/a/b/c/d/test/test_2814__2018_10_05_12_12_45/logA.log", 'r' )
> st1 = f3.readlines ()
>
> from the above log I extract the directory location to determine the
> location of  another log  using the following regular expresssion:
>

Specifically, try exploring "dirname" function of os.path module. That
might come in handy for your situation.

-- 
Thanks
   -- Sarfraaz Ahmed
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor