On Wed, Feb 6, 2013 at 12:47 PM, Alan Gauld wrote:
> so "the DOS prompt" is both traditional and sufficiently specific making it
> the most easily understandable of the likely terms.
"DOS prompt" is a common idiom, but it bears mentioning now and then
that the OS is NT [1], not DOS. That's all; I
Dear Sunil,
No method or function in Python has a *static* return type. That's
because Python is by nature a dynamic language, with duck typing and
dynamic dispatch. In fact, any method or function may well return any
of a number of different types:
def crazy_function(return_int)
if r
On Thu, Feb 7, 2013 at 12:09 AM, Sunil Tech wrote:
> If a method has no return type?
> what will it return?
>
note the original question is partially invalid... Python functions and
methods aren't typed. however, i imagine the OP really meant *return value*
instead, so the answer is really the f
If a method has no return type?
what will it return?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Wed, Feb 6, 2013 at 3:00 AM, wrote:
> Send Tutor mailing list submissions to
> tutor@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/tutor
> or, via email, send a message with subject or body 'help' to
>
http://www.pythontutor.com/visualize.html
is very helpful. Enter your code, click Visualize Execution, then click
forward.
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription optio
On 06/02/13 10:58, eryksun wrote:
and pedantic comment about the habit of saying "DOS prompt". The cmd
shell is a Win32 console application, unlike DOS command.com.
Yes, but the problem is that Windows now has so many command prompts
(cscript, cmd, power shell etc) that "the Windows prompt"
Mara Kelly wrote:
> Hi everyone, trying to write a program that has the user enter a password,
> checks if it contains any vowels, and
> if it does prints ' It is false that password(whatever the user enters) has
> no vowels,' and if it has no vowels
> prints it is True that password has no vowel
On 02/06/2013 08:44 AM, Mara Kelly wrote:
Hi everyone, trying to write a program that has the user enter a password,
checks if it contains any vowels, and if it does prints ' It is false that
password(whatever the user enters) has no vowels,' and if it has no vowels
prints it is True that pass
On 02/06/2013 09:26 AM, Noriko Tani wrote:
Hi Mara,
Several suggestions:
Put the password in a list, then loop each letter to check if it is a vowel
like this
No need to make it a list, strings are already iterable. And you don't
make it a list in the code, just in the remark above.
pa
Hi Mara,
Several suggestions:
Put the password in a list, then loop each letter to check if it is a vowel
like this
password=[]
vowels=['a','e','i','o','u']#in your message, u is missing, BTW
password=input("Enter a password:")
for p in password:
if p in vowels:
return
On Wed, Feb 6, 2013 at 9:44 PM, Mara Kelly wrote:
> Hi everyone, trying to write a program that has the user enter a password,
> checks if it contains any vowels, and if it does prints ' It is false that
> password(whatever the user enters) has no vowels,' and if it has no vowels
> prints it is T
On Wed, Feb 6, 2013 at 1:44 PM, Mara Kelly wrote:
> Hi everyone, trying to write a program that has the user enter a password,
> checks if it contains any vowels, and if it does prints ' It is false that
> password(whatever the user enters) has no vowels,' and if it has no vowels
> prints it is T
Hi everyone, trying to write a program that has the user enter a password,
checks if it contains any vowels, and if it does prints ' It is false that
password(whatever the user enters) has no vowels,' and if it has no vowels
prints it is True that password has no vowels...
Here is what I have so
On Wed, Feb 6, 2013 at 9:48 AM, Kang, Yang Jae wrote:
This line:
> >>> a = [[0,0]]*3
>
creates a list, a, which contains the list object [0, 0] three times.
What's crucial to note is that it contains *the same object* three times,
not three different objects with the same value. You can verify
On Tue, Feb 5, 2013 at 6:44 PM, 3n2 Solutions <3n2soluti...@gmail.com> wrote:
>
> I want to automate the following manual process from DOS promp:
I agree with Peter's answer. I'd just like to add a generally useless
and pedantic comment about the habit of saying "DOS prompt". The cmd
shell is a Wi
3n2 Solutions wrote:
> Hello,
>
> I want to automate the following manual process from DOS promp:
>
> c:/scripts/perl>perl fix.pl base.gtx >base.txt
>
> Here is my python script:
>
> path="c:/scripts/perl/"
> subprocess.call(['perl','fix.pl','base.gtx >base.txt',path])
>
> I also tried this a
Hello
I'm a beginner to python. I ran following code and expected [[1, 0], [0, 0],
[0, 0]]
However unexpected result came up. Anybody who can teach me why and how to
solve?
Python 3.2.3 (default, May 19 2012, 23:34:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "licens
18 matches
Mail list logo