Thanks for the contructive critisism - :D I'll try fix it up!
--
https://mail.python.org/mailman/listinfo/python-list
On 13/09/2013 23:12, William Bryant wrote:
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote:
On 12 September 2013 07:04, William Bryant wrote:
> Thanks everyone for helping but I did listen to you :3 Sorry. This is my
code, it works, I know it's not the best way to do i
In <364bcdb3-fdd5-4774-b7d2-040e2ccb4...@googlegroups.com> William Bryant
writes:
> Hello, I've done this so far but why doesn't the mode function work?
> def mode():
> global NumberOfXItems, Themode
> for i in List:
> NumberOfXItems.append(i)
> NumberOfXItems.append(Lis
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote:
> On 12 September 2013 07:04, William Bryant wrote:
>
> > Thanks everyone for helping but I did listen to you :3 Sorry. This is my
> > code, it works, I know it's not the best way to do it and it's the long way
> > round b
On 12 September 2013 07:04, William Bryant wrote:
> Thanks everyone for helping but I did listen to you :3 Sorry. This is my
> code, it works, I know it's not the best way to do it and it's the long way
> round but it is one of my first programs ever and I'm happy with it:
Hi William, I'm glad
Thanks everyone for helping but I did listen to you :3 Sorry. This is my code,
it works, I know it's not the best way to do it and it's the long way round but
it is one of my first programs ever and I'm happy with it:
'''#*'
On 09/12/2013 02:08 AM, Jugurtha Hadjar wrote:
Try this on your python prompt
mystring = "ThIs Is ThE wAy SoMe StUpId PeOpLe WrItE i DoN't KnOw WhY!"
mystring.lower()
This should return:
"You shouldn't treat people of stupid, but I feel your pain", or let's
be more realistic:
"this is th
On 09/11/2013 08:33 PM, William Bryant wrote:
@Jugurtha Hadjar
What does user_input.lower() mean/do?
Hello,
As did other people point out, it returns the lower case of a string.
It's not user_input.lower(), it's any_string.lower()
For example:
Try this on your python prompt
mystring = "T
On 9/11/2013 3:31 PM, William Bryant wrote:
What is .lower() ?
The Python docs have a pretty good index that includes 'lower() (str
method)'. Learn to use it.
If you know that .lower is a str method,
>>> help(str.lower)
at interactive prompt prints a page. Learn to use help(ob) also.
--
William Bryant wrote:
> Sent: Wednesday, September 11, 2013 2:32 PM
> To: python-list@python.org
> Subject: Re: Help please, why doesn't it show the next input?
>
> @Dave Angel
>
> What is .lower() ?
Thanks for bottom posting and trimming, but you should
leave some
On 11/9/2013 15:31, William Bryant wrote:
> @Dave Angel
>
> What is .lower() ?
It is a method on the str class.
You could teach yourself. At the interpreter prompt, type
help("test response".lower)
Or on the web:
http://docs.python.org/2/library/stdtypes.html#str.lower
There are lots of
In William Bryant
writes:
> @Jugurtha Hadjar
> What does user_input.lower() mean/do?
String objects have a number of built-in functions, lower() being one of
them. It returns a copy of the string with all uppercase letters converted
to lowercase.
Example:
>>> x = "Hello There"
>>> y
@Dave Angel
What is .lower() ?
--
https://mail.python.org/mailman/listinfo/python-list
@Jugurtha Hadjar
What does user_input.lower() mean/do?
--
https://mail.python.org/mailman/listinfo/python-list
On 11/9/2013 01:39, William Bryant wrote:
> On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote:
>> In William Bryant
>> writes:
>>
>>
>>
>> > Hey, I am very new to python, I am 13 years old. I want to be able to make
>> > =
>>
>> > a program the caculates the mean, meadi
Hello, William
On 09/11/2013 06:39 AM, William Bryant wrote:
> user_input1 = input(prompt)
I take it you are using Python 3.x . If that's not the case, take a look
at raw_input().
def NOS():
if user_input1 == "String" or user_input1 == "string" or user_input1 == "STRING" or user_inp
On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote:
> In William Bryant
> writes:
>
>
>
> > Hey, I am very new to python, I am 13 years old. I want to be able to make =
>
> > a program the caculates the mean, meadian and mode. When i run the program,=
>
> > an input fiel
In William Bryant
writes:
> Hey, I am very new to python, I am 13 years old. I want to be able to make =
> a program the caculates the mean, meadian and mode. When i run the program,=
> an input field pops up and says 'Does your list contain, a number or a str=
> ing?' like I want it to, but w
Hey, I am very new to python, I am 13 years old. I want to be able to make a
program the caculates the mean, meadian and mode. When i run the program, an
input field pops up and says 'Does your list contain, a number or a string?'
like I want it to, but when I type in something that is not one o
19 matches
Mail list logo