On 2020-07-03 10:09, Daley Okuwa via Python-list wrote:
> Write an algorithm (choose the language you prefer) that given a
> character string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will
> print out the list of characters appearing at least 2 times. In
> this specific example, it would return {‘a’
On 03/07/2020 11:09, Daley Okuwa via Python-list wrote:
Please can someone help
Write an algorithm (choose the language you prefer) that given a character
string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print out the list of
characters appearing at least 2 times. In this specific example
Hello!
> Please can someone help
>
> Write an algorithm (choose the language you prefer) that given a
> character string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print
> out the list of characters appearing at least 2 times. In this
> specific example, it would return {‘a’}. Afterwards, c
Please can someone help
Write an algorithm (choose the language you prefer) that given a character
string, for instance {‘c’,’a’,’i’,’o’,’p’,’a’}, will print out the list of
characters appearing at least 2 times. In this specific example, it would
return {‘a’}. Afterwards, comment out the cost
On Mon, 28 Oct 2019 at 14:42, ferzan saglam wrote:
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on
> asking for an entry until -1 is typed
> item = input()
> item != -1:
Try these
On 2019-10-28 06:42:46 -0700, ferzan saglam wrote:
> How can I stop this code when -1 is typed or at a maximum item count of ten.
I'm just rewriting that sentence in Python:
> At the moment the code seems to be in a infinite loop meaning it keeps on
> asking for an entry until -1 is typed
>
>
> On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote:
>
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on
> asking for an entry until -1 is typed
>
>
> total = 0
Bev
> On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote:
>
> How can I stop this code when -1 is typed or at a maximum item count of ten.
> At the moment the code seems to be in a infinite loop meaning it keeps on
> asking for an entry until -1 is typed
>
>
> total = 0
How can I stop this code when -1 is typed or at a maximum item count of ten.
At the moment the code seems to be in a infinite loop meaning it keeps on
asking for an entry until -1 is typed
total = 0
while True:
On 03Jun2019 16:32, Dennis Lee Bieber wrote:
On Mon, 3 Jun 2019 17:05:52 +0200 (CEST), "Lentes, Bernd"
declaimed the following:
I wrote a shellscript to create consistent images of the virtual
machines each night, using the bash and virsh (the libvirt shell).
Script is running fairly fine, bu
Hello dear Python-community,
i'm pretty new to Python. I made a seminar two weeks ago and like to write now
a script because if i don't i will have forgotten everything in a few weeks.
If this is the wrong place to ask my question please tell me where is the
appropriate one.
I'm
Hello peter and *,
Am 2018-02-03 hackte Peter J. Holzer in die Tasten:
> On 2018-01-29 19:14:57 +0100, Michelle Konzack wrote:
>> Am 2018-01-29 hackte Dan Stromberg in die Tasten:
>> > I don't see blueman on pypi, so this is probably part of the package
>> > you downloaded, and not something you n
On 2018-01-29 19:14:57 +0100, Michelle Konzack wrote:
> Am 2018-01-29 hackte Dan Stromberg in die Tasten:
> > I don't see blueman on pypi, so this is probably part of the package
> > you downloaded, and not something you need to "pip3 install".
>
> I have Python 2.7 and 3.5 from the Debian GNU/Lin
Good morning,
Am 2018-01-30 hackte careenjosep...@gmail.com in die Tasten:
> One contributing factor to this problem is the artificial environment that
> online courses provide to students. Students are usually typing code into
> a web page that contains instructions and hints. This is not how rea
One contributing factor to this problem is the artificial environment that
online courses provide to students. Students are usually typing code into a web
page that contains instructions and hints. This is not how real programming
gets done. So when the course is over and it’s time to use a real
Michelle Konzack wrote:
> Hello *,
>
> because I am runing into problems with SOME python based programs, I the
> this as opportunity to learn python (after ASM, C, BaSH, CP/M, COBOL,
> JS, PHP and perl).
>
>
> OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2
> (Stret
Hello Dan,
Am 2018-01-29 hackte Dan Stromberg in die Tasten:
> I don't see blueman on pypi, so this is probably part of the package
> you downloaded, and not something you need to "pip3 install".
I have Python 2.7 and 3.5 from the Debian GNU/Linux repository installed
I use the Stable (Stretch) v
On 2018-01-29 17:01, Michelle Konzack wrote:
[snip]
I think, that I have found the error here:
sys.path = [_dirname, os.path.join(_dirname, 'module', '.libs')] + sys.path
because there is written in
[ '/usr/lib/python-3.5/os.py' ]-
To get a full path (w
On Mon, Jan 29, 2018 at 9:01 AM, Michelle Konzack
wrote:
> OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2
> (Stretch system and discovered a problem:
>
> [ c 'blueman-applet' ]--
> Traceback (most recent call last):
> File
Hello *,
because I am runing into problems with SOME python based programs, I the
this as opportunity to learn python (after ASM, C, BaSH, CP/M, COBOL,
JS, PHP and perl).
OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2
(Stretch system and discovered a problem:
[
In article ,
larry.mart...@gmail.com says...
>
> On Tue, Jun 6, 2017 at 6:37 PM, Marko Rauhamaa wrote:
> > pta...@gmail.com:
> >
> >> New to Python and have been at it for about a month now. I'm doing
> >> well and like it very much. Considering a caree
On Sat, Jun 10, 2017 at 3:51 AM, Paul Rubin wrote:
> Larry Martell writes:
>> I can tell they think I am old and they dismiss me right away.
>
> http://oldgeekjobs.com ?
Cool! Thanks! Sharing with all my old nerdy friends.
--
https://mail.python.org/mailman/listinfo/python-list
Larry Martell writes:
> I can tell they think I am old and they dismiss me right away.
http://oldgeekjobs.com ?
--
https://mail.python.org/mailman/listinfo/python-list
On 6/6/17 5:39 PM, [1]pta...@gmail.com wrote:
New to Python and have been at it for about a month now. I'm doing well and
like it very much. Considering a career change down the road and have been
wondering... What are the job prospects for a middle age entry level
programmer. Just t
On Tuesday, June 6, 2017 at 3:37:56 PM UTC-7, Marko Rauhamaa wrote:
> pta...@gmail.com:
>
> > New to Python and have been at it for about a month now. I'm doing
> > well and like it very much. Considering a career change down the road
> > and have been wondering... W
On Tue, Jun 6, 2017 at 6:37 PM, Marko Rauhamaa wrote:
> pta...@gmail.com:
>
>> New to Python and have been at it for about a month now. I'm doing
>> well and like it very much. Considering a career change down the road
>> and have been wondering... What are the j
pta...@gmail.com:
> New to Python and have been at it for about a month now. I'm doing
> well and like it very much. Considering a career change down the road
> and have been wondering... What are the job prospects for a middle age
> entry level programmer. Just tryin
On Tue, Jun 6, 2017 at 5:39 PM, wrote:
> New to Python and have been at it for about a month now. I'm doing well and
> like it very much. Considering a career change down the road and have been
> wondering... What are the job prospects for a middle age entry level
> programme
New to Python and have been at it for about a month now. I'm doing well and
like it very much. Considering a career change down the road and have been
wondering... What are the job prospects for a middle age entry level
programmer. Just trying to get a better understanding where I stand c
On 2017-05-17, BT wrote:
> I am fairly new to programming. I was just trying to understand how
> this group works. Am i allowed to ask any questions that I may have
> when i get stuck?
Certainly.
For best results, post small pieces of code that demonstrate your
problem/question (cut and paste f
On Wednesday, May 17, 2017 at 9:00:08 PM UTC+1, BT wrote:
> Hi guys,
> I am fairly new to programming. I was just trying to understand how this
> group works. Am i allowed to ask any questions that I may have when i get
> stuck? I mean is this group for new programmers as well..?
> Thanks
You ca
On Wed, May 17, 2017 at 4:43 PM, justin walters
wrote:
> On Wed, May 17, 2017 at 12:59 PM, BT wrote:
>
> > Hi guys,
> > I am fairly new to programming. I was just trying to understand how this
> > group works. Am i allowed to ask any questions that I may have when i get
> > stuck? I mean is this
BT writes:
> I am fairly new to programming. I was just trying to understand how
> this group works. Am i allowed to ask any questions that I may have
> when i get stuck? I mean is this group for new programmers as well..?
Welcome. Yes, it's for pretty much any questions about Python
programmin
On Thu, May 18, 2017 at 5:59 AM, BT wrote:
> I am fairly new to programming. I was just trying to understand how this
> group works. Am i allowed to ask any questions that I may have when i get
> stuck? I mean is this group for new programmers as well..?
>
Hi! Yes, it is, but if you're really R
On Wed, May 17, 2017 at 12:59 PM, BT wrote:
> Hi guys,
> I am fairly new to programming. I was just trying to understand how this
> group works. Am i allowed to ask any questions that I may have when i get
> stuck? I mean is this group for new programmers as well..?
> Thanks
> --
> https://mail.p
Hi guys,
I am fairly new to programming. I was just trying to understand how this group
works. Am i allowed to ask any questions that I may have when i get stuck? I
mean is this group for new programmers as well..?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday 05 January 2017 10:21, Terry Reedy wrote:
> On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
>
>> And that statement tells us you are trying to run from within some
>> IDE/editor which is trapping Python exceptions and producing a dialog
>> box for them.
>
> IDLE does this when one runs
On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
> And that statement tells us you are trying to run from within some
> IDE/editor which is trapping Python exceptions and producing a dialog
> box for them.
IDLE does this when one runs code from the editor, because it
cannot/should not inject error
On 01/03/2017 04:27 PM, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
>> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
>>> I doubt it's getting that far (I can see at least one syntax error in the
>>> code pasted).
>>
>> True true. In any case, t
On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
> Hey man thanks, the sad thing is i have no idea why i put that in. I must be
> having a terrible day.
Don't worry about it. The difference between a beginner and an expert is *not*
that experts make fewer mistakes, but that experts kno
On Tue, 3 Jan 2017 16:27:33 -0800 (PST), Callum Robinson
declaimed the following:
>On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
>> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
>> > I doubt it's getting that far (I can see at least one syntax error in the
>> > code pa
On 04/01/17 02:47, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> I did it and this is what it states when i run it
>
> hello.
> I have thought of a number between 1 and 100.
> Can you guess it?
> 5
> Low
> Sorry , you are too high. Try again.
>
> Does th
On 04/01/17 03:25, Steven D'Aprano wrote:
> On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
>
>> Hey man thanks, the sad thing is i have no idea why i put that in. I must be
>> having a terrible day.
>
> Don't worry about it. The difference between a beginner and an expert is
*not*
> tha
On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> On 04/01/17 02:24, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> >> What values can 'is_same' return?
> >>
> >> Which of those values are you checking for in the loop?
> >
> > I'm sorry
On Tue, 3 Jan 2017 18:47:43 -0800 (PST), Callum Robinson
declaimed the following:
>
>hello.
>I have thought of a number between 1 and 100.
>Can you guess it?
>5
>Low
>Sorry , you are too high. Try again.
>
>Does this mean the number i entered is to low but the code is still stating it
is to high
On 04/01/17 02:24, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
>> What values can 'is_same' return?
>>
>> Which of those values are you checking for in the loop?
>
> I'm sorry but i do not completely understand what you are stating
You need to think abo
On Wednesday 04 January 2017 13:24, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
>> On 2017-01-04 01:37, Callum Robinson wrote:
>> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson
>> > wrote:
>> >> Im doing a new task from my teache
On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> On 2017-01-04 01:37, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> >> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone he
On 2017-01-04 01:37, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
>> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone help?
>>
>> #mynumber.py
>> # this game uses a home made function
>> imp
On Wednesday, January 4, 2017 at 1:45:22 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:30, Callum Robinson wrote:
> > I feel like im missing something so blatantly obvious.
>
> That's because you are ;). I don't want to come across as patronising,
> but I want you to see it for yourself, s
On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_number
On Wed, 4 Jan 2017 11:16 am, Callum Robinson wrote:
> My apologizes but i'm quite new and would need instructions to what
> information you need me to get.
Do you know how to copy and paste from the terminal window?
Somewhere on the screen you see something like:
x = 23 + )
^
On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:02, Callum Robinson wrote:
> > When i check the code it comes up with invalid syntax and my writing
> line gets re directed here
> >
> > def is_same(target, number:
> > if target == number:
>
Hi Callum,
On 04/01/17 00:30, Callum Robinson wrote:
> I feel like im missing something so blatantly obvious.
That's because you are ;). I don't want to come across as patronising, but I
want you to see it for yourself, so, here's a function definition similar to
yours that doesn't have the sam
On Wednesday, January 4, 2017 at 2:16:08 PM UTC+13, Steve D'Aprano wrote:
> On Wed, 4 Jan 2017 12:04 pm, Callum Robinson wrote:
>
> > Traceback (most recent call last):
> > File "D:/Python/random.py", line 6, in
> > computer_number = number.randint(1, 100)
> > NameError: name 'number' is not
On Wednesday, January 4, 2017 at 1:03:18 PM UTC+13, Erik wrote:
> On 03/01/17 23:56, Chris Angelico wrote:
> > On Wed, Jan 4, 2017 at 10:49 AM, wrote:
> >> #think of a number
> >> computer_number = number.randint(1,100)
> >
> > What's wrong is that you aren't showing us the exception you get on
>
On 1/3/2017 7:02 PM, Callum Robinson wrote:
> When i check the code it comes up with invalid syntax and my writing line
gets re directed here
>
> def is_same(target, number:
> if target == number:
> result="win"
> elif target > number:
> result="low"
>
On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
> I doubt it's getting that far (I can see at least one syntax error in the
> code pasted).
True true. In any case, the point is to copy and paste the error message.
Callum, please, copy and paste it.
ChrisA
--
https://mail.python.org/mailman/listi
On Wed, 4 Jan 2017 12:04 pm, Callum Robinson wrote:
> Traceback (most recent call last):
> File "D:/Python/random.py", line 6, in
> computer_number = number.randint(1, 100)
> NameError: name 'number' is not defined
That's exactly what we need to see! The full traceback, thank you!
You're
On 04/01/17 00:32, Callum Robinson wrote:
> I forgot a bloody bracket xD
Cool, you got it ;) It's the sort of thing your brain will see instantly once
you've done it a few times :D
> and now theirs a new error ill try to figure this out on my own.
You need to look back to Chris's original reply
Im doing a new task from my teacher but i can't seem to find what is wrong with
this code. Can anyone help?
#mynumber.py
# this game uses a home made function
import random
#think of a number
computer_number = number.randint(1,100)
#create the function is_same()
def is_same(target, number:
On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:02, Callum Robinson wrote:
> > When i check the code it comes up with invalid syntax and my writing
> line gets re directed here
> >
> > def is_same(target, number:
> > if target == number:
>
When i check the code it comes up with invalid syntax and my writing line gets
re directed here
def is_same(target, number:
if target == number:
result="win"
elif target > number:
result="low"
else:
result="high"
return result
-
On Tue, 3 Jan 2017 16:02:15 -0800 (PST), Callum Robinson
declaimed the following:
>When i check the code it comes up with invalid syntax and my writing line gets
re directed here
>
>def is_same(target, number:
>if target == number:
>result="win"
>elif target > number:
On Wed, Jan 4, 2017 at 10:49 AM, wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong
with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_number = number.randint(1,100)
What's w
Hi Callum,
On 04/01/17 00:02, Callum Robinson wrote:
> When i check the code it comes up with invalid syntax and my writing
line gets re directed here
>
> def is_same(target, number:
> if target == number:
> result="win"
> elif target > number:
> resu
On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
> > I doubt it's getting that far (I can see at least one syntax error in the
> > code pasted).
>
> True true. In any case, the point is to copy and paste the error
> message. C
On 03/01/17 23:56, Chris Angelico wrote:
> On Wed, Jan 4, 2017 at 10:49 AM, wrote:
>> #think of a number
>> computer_number = number.randint(1,100)
>
> What's wrong is that you aren't showing us the exception you get on
> this line. *Copy and paste* that exception - the whole thing. It's
> very h
On 1/4/2017 9:51 PM, Steven D'Aprano wrote:
On Thursday 05 January 2017 10:21, Terry Reedy wrote:
IDLE does this when one runs code from the editor, because it
cannot/should not inject error messages into the editor buffer...
AND it replaces the ^ with red highlighting of the code pointed to.
On Thursday 05 January 2017 10:21, Terry Reedy wrote:
> On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
>
>> And that statement tells us you are trying to run from within some
>> IDE/editor which is trapping Python exceptions and producing a dialog
>> box for them.
>
> IDLE does this when one run
On 1/3/2017 10:15 PM, Dennis Lee Bieber wrote:
And that statement tells us you are trying to run from within some
IDE/editor which is trapping Python exceptions and producing a dialog
box for them.
IDLE does this when one runs code from the editor, because it
cannot/should not inject error me
On 01/03/2017 04:27 PM, Callum Robinson wrote:
On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
I doubt it's getting that far (I can see at least one syntax error in the
code pasted).
True true. In any case, the point is t
On 04/01/17 03:25, Steven D'Aprano wrote:
On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
Hey man thanks, the sad thing is i have no idea why i put that in. I must be
having a terrible day.
Don't worry about it. The difference between a beginner and an expert is *not*
that experts
On Wednesday 04 January 2017 12:25, Callum Robinson wrote:
> Hey man thanks, the sad thing is i have no idea why i put that in. I must be
> having a terrible day.
Don't worry about it. The difference between a beginner and an expert is *not*
that experts make fewer mistakes, but that experts kno
On Wednesday 04 January 2017 13:24, Callum Robinson wrote:
> On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
>> On 2017-01-04 01:37, Callum Robinson wrote:
>> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson
>> > wrote:
>> >> Im doing a new task from my teache
On 04/01/17 02:47, Callum Robinson wrote:
On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
I did it and this is what it states when i run it
hello.
I have thought of a number between 1 and 100.
Can you guess it?
5
Low
Sorry , you are too high. Try again.
Does this mean the number
On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> On 04/01/17 02:24, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> >> What values can 'is_same' return?
> >>
> >> Which of those values are you checking for in the loop?
> >
> > I'm sorry
On 04/01/17 02:24, Callum Robinson wrote:
On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
What values can 'is_same' return?
Which of those values are you checking for in the loop?
I'm sorry but i do not completely understand what you are stating
You need to think about the s
On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> On 2017-01-04 01:37, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> >> Im doing a new task from my teacher but i can't seem to find what is wrong
> >> with this code. Can any
On 2017-01-04 01:37, Callum Robinson wrote:
On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
Im doing a new task from my teacher but i can't seem to find what is wrong with
this code. Can anyone help?
#mynumber.py
# this game uses a home made function
import random
On Wednesday, January 4, 2017 at 12:49:28 PM UTC+13, Callum Robinson wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong
> with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_n
On Wednesday, January 4, 2017 at 2:16:08 PM UTC+13, Steve D'Aprano wrote:
> On Wed, 4 Jan 2017 12:04 pm, Callum Robinson wrote:
>
> > Traceback (most recent call last):
> > File "D:/Python/random.py", line 6, in
> > computer_number = number.randint(1, 100)
> > NameError: name 'number' is no
On Wed, 4 Jan 2017 12:04 pm, Callum Robinson wrote:
> Traceback (most recent call last):
> File "D:/Python/random.py", line 6, in
> computer_number = number.randint(1, 100)
> NameError: name 'number' is not defined
That's exactly what we need to see! The full traceback, thank you!
You're
On Wednesday, January 4, 2017 at 1:45:22 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:30, Callum Robinson wrote:
> > I feel like im missing something so blatantly obvious.
>
> That's because you are ;). I don't want to come across as patronising,
> but I want you to see it for yourself
On Wed, 4 Jan 2017 11:16 am, Callum Robinson wrote:
> My apologizes but i'm quite new and would need instructions to what
> information you need me to get.
Do you know how to copy and paste from the terminal window?
Somewhere on the screen you see something like:
x = 23 + )
^
On 1/3/2017 7:02 PM, Callum Robinson wrote:
When i check the code it comes up with invalid syntax and my writing line gets
re directed here
def is_same(target, number:
if target == number:
result="win"
elif target > number:
result="low"
else:
On 04/01/17 00:32, Callum Robinson wrote:
I forgot a bloody bracket xD
Cool, you got it ;) It's the sort of thing your brain will see instantly
once you've done it a few times :D
and now theirs a new error ill try to figure this out on my own.
You need to look back to Chris's original rep
Hi Callum,
On 04/01/17 00:30, Callum Robinson wrote:
I feel like im missing something so blatantly obvious.
That's because you are ;). I don't want to come across as patronising,
but I want you to see it for yourself, so, here's a function definition
similar to yours that doesn't have the sa
On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:02, Callum Robinson wrote:
> > When i check the code it comes up with invalid syntax and my writing
> line gets re directed here
> >
> > def is_same(target, number:
> > if target == number:
On Wednesday, January 4, 2017 at 1:26:26 PM UTC+13, Erik wrote:
> Hi Callum,
>
> On 04/01/17 00:02, Callum Robinson wrote:
> > When i check the code it comes up with invalid syntax and my writing
> line gets re directed here
> >
> > def is_same(target, number:
> > if target == number:
On Wednesday, January 4, 2017 at 1:17:11 PM UTC+13, Chris Angelico wrote:
> On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
> > I doubt it's getting that far (I can see at least one syntax error in the
> > code pasted).
>
> True true. In any case, the point is to copy and paste the error
> message.
Hi Callum,
On 04/01/17 00:02, Callum Robinson wrote:
> When i check the code it comes up with invalid syntax and my writing
line gets re directed here
>
> def is_same(target, number:
> if target == number:
> result="win"
> elif target > number:
> result="
On Wednesday, January 4, 2017 at 1:03:18 PM UTC+13, Erik wrote:
> On 03/01/17 23:56, Chris Angelico wrote:
> > On Wed, Jan 4, 2017 at 10:49 AM, wrote:
> >> #think of a number
> >> computer_number = number.randint(1,100)
> >
> > What's wrong is that you aren't showing us the exception you get on
>
On Wed, Jan 4, 2017 at 11:03 AM, Erik wrote:
> I doubt it's getting that far (I can see at least one syntax error in the
> code pasted).
True true. In any case, the point is to copy and paste the error
message. Callum, please, copy and paste it.
ChrisA
--
https://mail.python.org/mailman/listinf
When i check the code it comes up with invalid syntax and my writing line gets
re directed here
def is_same(target, number:
if target == number:
result="win"
elif target > number:
result="low"
else:
result="high"
return result
--
On 03/01/17 23:56, Chris Angelico wrote:
On Wed, Jan 4, 2017 at 10:49 AM, wrote:
#think of a number
computer_number = number.randint(1,100)
What's wrong is that you aren't showing us the exception you get on
this line. *Copy and paste* that exception - the whole thing. It's
very helpful.
I
On Wed, Jan 4, 2017 at 10:49 AM, wrote:
> Im doing a new task from my teacher but i can't seem to find what is wrong
> with this code. Can anyone help?
>
> #mynumber.py
> # this game uses a home made function
> import random
>
> #think of a number
> computer_number = number.randint(1,100)
What'
Im doing a new task from my teacher but i can't seem to find what is wrong with
this code. Can anyone help?
#mynumber.py
# this game uses a home made function
import random
#think of a number
computer_number = number.randint(1,100)
#create the function is_same()
def is_same(target, number:
On 17 October 2016 at 21:51, Bill Cunningham wrote:
> I just installed python I might start with 3. But there is version 2 out
> too. So far I can '3+4' and get the answer. Nice. I typed the linux man page
> and got a little info. So to learn this language is there an online
> tutorial? I am i
On Mon, Oct 17, 2016 at 12:51 PM, Bill Cunningham
wrote:
> I just installed python I might start with 3. But there is version 2 out
> too. So far I can '3+4' and get the answer. Nice. I typed the linux man
> page
> and got a little info. So to learn this language is there an online
> tutorial? I
1 - 100 of 744 matches
Mail list logo