On 2017-04-15 01:04, Alan Gauld via Tutor wrote:
Finally, if you can find a copy of my recent book "Python Projects"
there is a rolling project within that which demonstrates how
the same logic code can be used to build a CLI, a GUI and a
Web app. [ In fact it goes even further by demonstratin
On 16/04/17 00:17, boB Stepp wrote:
> --
> #!/usr/bin/env python3
>
> def mySuperWhammyFunction(any_input):
> return any_input
This is a simple function, its not bound to an object
>
> import unittest
>
>
In the section
https://docs.python.org/3/library/test.html#writing-unit-tests-for-the-test-package
I have been trying to make sense of the given pointer and code snippet:
Try to maximize code reuse. On occasion, tests will vary by something
as small as what type of input is used. Minimize code
On 15/04/17 15:33, Rafael Knuth wrote:
> can anyone point me to good learning resources on this subject?
I'd recommend YouTube as your first port of call.
There are a few python unit test videos but most of
the best stuff is Java focused, but it translates
to Python easily enough.
Once you've wat
For python specific I'd look at unittest:
https://docs.python.org/3/library/unittest.html?highlight=test#module-unittest
For testing in general then "Test Driven Development By Example" by Kent
Beck. Examples are in Java but he explains the theory.
I've been on a testing kick lately and am sloggi
On Sat, Apr 15, 2017 at 10:33 AM, Rafael Knuth wrote:
> can anyone point me to good learning resources on this subject?
> (python 3)
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/ma
can anyone point me to good learning resources on this subject?
(python 3)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi,
Start with the tutorial at https://docs.python.org/3/tutorial/
It includes Brief Tour of the Standard Library:
https://docs.python.org/3/tutorial/stdlib.html
https://docs.python.org/3/tutorial/stdlib2.html
Hope that helps.
Sri
On Sat, Apr 15, 2017 at 2:03 PM, Aero Maxx D wrote:
> Hi ev
Palm Tree wrote:
> hi all. i'm trying to write a simple program. i'm using python 3.4
>
> let us say i have
>
> s="2*3+3(8-4(5+6+9))+2+3+3(4/4)"
>
> i want to find expression enclosed in brackets.
>
> i want outputs to be like:
> (8-4(5+6+9))
> (5+6+9)
> (4/4)
> note : i'd like an answer invol
Aero Maxx D wrote:
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 15/04/17 09:33, Aero Maxx D wrote:
> With Python I'm not finding which modules I need
Search for the functionality within the python.org site.
The documentation tells you which module you are looking for.
> ...I thought I'd connect to a MySQL database
There is a standard DB interface in Py
On 15/04/17 03:17, Palm Tree wrote:
> s="2*3+3(8-4(5+6+9))+2+3+3(4/4)"
>
> i want to find expression enclosed in brackets.
>
> i want outputs to be like:
> (8-4(5+6+9))
> (5+6+9)
> (4/4)
>
You probably could do it with some fancy regex but personally
I'd investigate a proper text parser. There
On Sat, Apr 15, 2017 at 4:33 AM, Aero Maxx D wrote:
> Hi everyone,
>
> I'm very very new to Python, and trying to learn and I'm struggling with the
> import statements.
>
> I understand they are importing modules that I can then use in my code, what
> I'm struggling with though is how do I find
Hi everyone,
I'm very very new to Python, and trying to learn and I'm struggling with the
import statements.
I understand they are importing modules that I can then use in my code, what
I'm struggling with though is how do I find out which modules I need to use to
do any given task?
I do have
Thankyou. got it.
On Sat, Apr 15, 2017 at 5:44 AM, Steven D'Aprano
wrote:
> On Fri, Apr 14, 2017 at 11:59:25PM +0530, shubham goyal wrote:
>
> > sorted(ls)
> > sorted(ls1)
>
> Here you sort ls and throw the result away, then you do the same to ls1.
>
> sorted() makes a copy of the list and s
hi all. i'm trying to write a simple program. i'm using python 3.4
let us say i have
s="2*3+3(8-4(5+6+9))+2+3+3(4/4)"
i want to find expression enclosed in brackets.
i want outputs to be like:
(8-4(5+6+9))
(5+6+9)
(4/4)
i've tried where denotes an indentation level :
#first part
sbracket
On Wed, Apr 5, 2017 at 12:42 AM, Alan Gauld via Tutor
wrote:
> On 04/04/17 17:55, Lisa Hasler Waters wrote:
>
> > A middle school student of mine created a program to calculate simple and
> > compound interest. He built it in PyCharm EDU using a Mac running
> 10.11.6.
> >
> > He would like to cre
On 15/04/17 03:38, Alex Kleider wrote:
>> Whatever he does he will need to separate his UI from his
>> logic - a good programming skill regardless of UI.
>
> Can anyone suggest a good tutorial that explains exactly what this means
> and how to achieve it?
> (separate UI from logic I mean.)
I do
18 matches
Mail list logo