Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80089 > unrolled thread

what can i do to improve my skill after finished python course on codecademy

Started byfanhuhuai@gmail.com
First post2014-11-01 08:01 -0700
Last post2014-11-02 22:51 +0530
Articles 18 — 12 participants

Back to article view | Back to comp.lang.python


Contents

  what can i do to improve my skill after finished python course on codecademy fanhuhuai@gmail.com - 2014-11-01 08:01 -0700
    Re: what can i do to improve my skill after finished python course on codecademy alister <alister.nospam.ware@ntlworld.com> - 2014-11-01 22:01 +0000
      Re: what can i do to improve my skill after finished python course on codecademy Chris Angelico <rosuav@gmail.com> - 2014-11-02 09:10 +1100
      Re: what can i do to improve my skill after finished python course on codecademy Grant Edwards <invalid@invalid.invalid> - 2014-11-02 00:31 +0000
        Re: what can i do to improve my skill after finished python course on codecademy MRAB <python@mrabarnett.plus.com> - 2014-11-02 00:55 +0000
        Re: what can i do to improve my skill after finished python course on codecademy Chris Angelico <rosuav@gmail.com> - 2014-11-02 12:02 +1100
          Re: what can i do to improve my skill after finished python course on codecademy Grant Edwards <invalid@invalid.invalid> - 2014-11-02 17:30 +0000
        Re: what can i do to improve my skill after finished python course on codecademy Huhuai Fan <fanhuhuai@gmail.com> - 2014-11-02 06:49 -0800
          Re: what can i do to improve my skill after finished python course on codecademy Peter Otten <__peter__@web.de> - 2014-11-02 16:08 +0100
          Re: what can i do to improve my skill after finished python course on codecademy Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-02 12:16 -0500
            Re: what can i do to improve my skill after finished python course on codecademy Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-11-02 14:10 -0500
              Re: what can i do to improve my skill after finished python course on codecademy Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-02 19:42 +0000
                Re: what can i do to improve my skill after finished python course on codecademy Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-11-02 15:45 -0500
                Re: what can i do to improve my skill after finished python course on codecademy Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-11-02 16:03 -0500
                  Re: what can i do to improve my skill after finished python course on codecademy Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-02 17:00 -0500
                  Re: what can i do to improve my skill after finished python course on codecademy Dave Angel <davea@davea.name> - 2014-11-02 17:07 -0500
                  Re: what can i do to improve my skill after finished python course on codecademy Chris Angelico <rosuav@gmail.com> - 2014-11-03 09:12 +1100
          Re: what can i do to improve my skill after finished python course on codecademy Abhiram <abhi.darkness@gmail.com> - 2014-11-02 22:51 +0530

#80089 — what can i do to improve my skill after finished python course on codecademy

Fromfanhuhuai@gmail.com
Date2014-11-01 08:01 -0700
Subjectwhat can i do to improve my skill after finished python course on codecademy
Message-ID<957d3844-9b9a-47b7-892f-b7660aa40d88@googlegroups.com>
i will finish the python course on codecademy soon,i dont konw how to improve my skill and what can i do to use it ,some projects ? should i learn others course ?

[toc] | [next] | [standalone]


#80106

Fromalister <alister.nospam.ware@ntlworld.com>
Date2014-11-01 22:01 +0000
Message-ID<mLc5w.736949$KL.181699@fx19.am4>
In reply to#80089
On Sat, 01 Nov 2014 08:01:12 -0700, fanhuhuai wrote:

> i will finish the python course on codecademy soon,i dont konw how to
> improve my skill and what can i do to use it ,some projects ? should i
> learn others course ?

find a task you need a solution too.
are there any regular admin task you perform that could be automated?
do you have any hobbies that could benefit from computerisation?

genuine tasks are always better that those created purely to teach

"Practicality beats purity"



-- 
"The IETF motto is 'rouch consesus and running code'"
  
  -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)

[toc] | [prev] | [next] | [standalone]


#80107

FromChris Angelico <rosuav@gmail.com>
Date2014-11-02 09:10 +1100
Message-ID<mailman.15399.1414879845.18130.python-list@python.org>
In reply to#80106
On Sun, Nov 2, 2014 at 9:01 AM, alister
<alister.nospam.ware@ntlworld.com> wrote:
> find a task you need a solution too.
> are there any regular admin task you perform that could be automated?
> do you have any hobbies that could benefit from computerisation?
>
> genuine tasks are always better that those created purely to teach

I agree, but also, pick something that's small and self-contained. Try
to find a project that you can complete (to the point of usability)
within a day, or at most a week, preferably within the space of a page
or two of code. As an added advantage, you'll be able to ask for code
review, here or somewhere else; you can learn a lot by writing your
code first, and then having other programmers offer comments. (Note
that I didn't say "better programmers" or even "more senior
programmers". It's called "peer review" in some circles, because the
point is that anyone can learn from anyone else.)

ChrisA

[toc] | [prev] | [next] | [standalone]


#80110

FromGrant Edwards <invalid@invalid.invalid>
Date2014-11-02 00:31 +0000
Message-ID<m33u0r$lnn$1@reader1.panix.com>
In reply to#80106
On 2014-11-01, alister <alister.nospam.ware@ntlworld.com> wrote:

"The IETF motto is 'rouch consesus and running code'"

  -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)

I don't get it, and googling didn't help.  What is "rouch" consensus?

-- 
Grant

[toc] | [prev] | [next] | [standalone]


#80111

FromMRAB <python@mrabarnett.plus.com>
Date2014-11-02 00:55 +0000
Message-ID<mailman.15402.1414889735.18130.python-list@python.org>
In reply to#80110
On 2014-11-02 00:31, Grant Edwards wrote:
> On 2014-11-01, alister <alister.nospam.ware@ntlworld.com> wrote:
>
> "The IETF motto is 'rouch consesus and running code'"
>
>    -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
>
> I don't get it, and googling didn't help.  What is "rouch" consensus?
>
I googled for:

     "Scott Bradner" "IETF motto"

It gave me:

     The IETF motto is "rough consensus and running code."

[toc] | [prev] | [next] | [standalone]


#80112

FromChris Angelico <rosuav@gmail.com>
Date2014-11-02 12:02 +1100
Message-ID<mailman.15403.1414890163.18130.python-list@python.org>
In reply to#80110
On Sun, Nov 2, 2014 at 11:31 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2014-11-01, alister <alister.nospam.ware@ntlworld.com> wrote:
>
> "The IETF motto is 'rouch consesus and running code'"
>
>   -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
>
> I don't get it, and googling didn't help.  What is "rouch" consensus?

Presumably "rough consensus". As long as most people agree (as opposed
to total consensus, where *everyone* agrees), and as long as the code
can be made to run, perfection is a luxury hat the IETF doesn't strive
for. It's a form of "practicality beats purity" as it applies to
standards development.

The joke may be that this is only approximately correct spelling, as
well as only approximate consensus and approximately working code. Or
that might just be a transcription error.

ChrisA

[toc] | [prev] | [next] | [standalone]


#80128

FromGrant Edwards <invalid@invalid.invalid>
Date2014-11-02 17:30 +0000
Message-ID<m35pnf$64o$1@reader1.panix.com>
In reply to#80112
On 2014-11-02, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, Nov 2, 2014 at 11:31 AM, Grant Edwards <invalid@invalid.invalid> wrote:
>> On 2014-11-01, alister <alister.nospam.ware@ntlworld.com> wrote:
>>
>> "The IETF motto is 'rouch consesus and running code'"
>>
>>   -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
>>
>> I don't get it, and googling didn't help.  What is "rouch" consensus?
>
> Presumably "rough consensus".  [...]

> The joke may be that this is only approximately correct spelling,

I was wondering about that after I posted.  I did find that
misspelling in one or two e-mails in a mailing list archive, but it
didn't really seem like it was being used as an in-joke.

-- 
Grant


[toc] | [prev] | [next] | [standalone]


#80119

FromHuhuai Fan <fanhuhuai@gmail.com>
Date2014-11-02 06:49 -0800
Message-ID<b1efa476-0eb4-49c2-b890-89c5417370e7@googlegroups.com>
In reply to#80110
在 2014年11月2日星期日UTC+8上午8时31分39秒,Grant Edwards写道:
> On 2014-11-01, alister <alister.nospam.ware@ntlworld.com> wrote:
> 
> "The IETF motto is 'rouch consesus and running code'"
> 
>   -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
> 
> I don't get it, and googling didn't help.  What is "rouch" consensus?
> 
> -- 
> Grant

Thanks for your help, but i have no idea to find a project that i can complete,i am now in perplexed for what to do

[toc] | [prev] | [next] | [standalone]


#80121

FromPeter Otten <__peter__@web.de>
Date2014-11-02 16:08 +0100
Message-ID<mailman.15407.1414940925.18130.python-list@python.org>
In reply to#80119
Huhuai Fan wrote:

> Thanks for your help, but i have no idea to find a project that i can
> complete,i am now in perplexed for what to do

Then write a small text-based brainstorming app!

[toc] | [prev] | [next] | [standalone]


#80126

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2014-11-02 12:16 -0500
Message-ID<mailman.15411.1414948574.18130.python-list@python.org>
In reply to#80119
On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
> Huhuai Fan wrote:
>
>> Thanks for your help, but i have no idea to find a project that i can
>> complete,i am now in perplexed for what to do
>
> Then write a small text-based brainstorming app!
>
> --
> https://mail.python.org/mailman/listinfo/python-list

If you like math puzzles you can do the euler project stuff

-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [prev] | [next] | [standalone]


#80130

FromSeymore4Head <Seymore4Head@Hotmail.invalid>
Date2014-11-02 14:10 -0500
Message-ID<4c0d5apoa3455vmkgdtp7nn25pl85fgmoh@4ax.com>
In reply to#80126
On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
<joel.goldstick@gmail.com> wrote:

>On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>> Huhuai Fan wrote:
>>
>>> Thanks for your help, but i have no idea to find a project that i can
>>> complete,i am now in perplexed for what to do
>>
>> Then write a small text-based brainstorming app!
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
>If you like math puzzles you can do the euler project stuff

target=1000
thelist=[]
thesum=0
for x in range (1,target):
    if x%3==0: thelist.append(x)
    if x%5==0 and x%3!=0: thelist.append(x)
for x in thelist: thesum+=x
print(thelist)
print (thesum)

[toc] | [prev] | [next] | [standalone]


#80133

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-11-02 19:42 +0000
Message-ID<mailman.15414.1414957509.18130.python-list@python.org>
In reply to#80130
On 02/11/2014 19:10, Seymore4Head wrote:
> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
> <joel.goldstick@gmail.com> wrote:
>
>> On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>>> Huhuai Fan wrote:
>>>
>>>> Thanks for your help, but i have no idea to find a project that i can
>>>> complete,i am now in perplexed for what to do
>>>
>>> Then write a small text-based brainstorming app!
>>>
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
>>
>> If you like math puzzles you can do the euler project stuff
>
> target=1000
> thelist=[]
> thesum=0
> for x in range (1,target):
>      if x%3==0: thelist.append(x)
>      if x%5==0 and x%3!=0: thelist.append(x)
> for x in thelist: thesum+=x
> print(thelist)
> print (thesum)
>

In [1]: help(sum)
Help on built-in function sum in module builtins:

sum(...)
     sum(iterable[, start]) -> value

     Return the sum of an iterable of numbers (NOT strings) plus the value
     of parameter 'start' (which defaults to 0).  When the iterable is
     empty, return start.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#80136

FromSeymore4Head <Seymore4Head@Hotmail.invalid>
Date2014-11-02 15:45 -0500
Message-ID<2e4d5apn4k8vql5m4il1nra46ldd5p8e6l@4ax.com>
In reply to#80133
On Sun, 02 Nov 2014 19:42:49 +0000, Mark Lawrence
<breamoreboy@yahoo.co.uk> wrote:

>On 02/11/2014 19:10, Seymore4Head wrote:
>> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
>> <joel.goldstick@gmail.com> wrote:
>>
>>> On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>>>> Huhuai Fan wrote:
>>>>
>>>>> Thanks for your help, but i have no idea to find a project that i can
>>>>> complete,i am now in perplexed for what to do
>>>>
>>>> Then write a small text-based brainstorming app!
>>>>
>>>> --
>>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>> If you like math puzzles you can do the euler project stuff
>>
>> target=1000
>> thelist=[]
>> thesum=0
>> for x in range (1,target):
>>      if x%3==0: thelist.append(x)
>>      if x%5==0 and x%3!=0: thelist.append(x)
>> for x in thelist: thesum+=x
>> print(thelist)
>> print (thesum)
>>
>
>In [1]: help(sum)
>Help on built-in function sum in module builtins:
>
>sum(...)
>     sum(iterable[, start]) -> value
>
>     Return the sum of an iterable of numbers (NOT strings) plus the value
>     of parameter 'start' (which defaults to 0).  When the iterable is
>     empty, return start.

Thanks

[toc] | [prev] | [next] | [standalone]


#80137

FromSeymore4Head <Seymore4Head@Hotmail.invalid>
Date2014-11-02 16:03 -0500
Message-ID<d26d5adlmfnkaji1ico6dpv9djah2obp1m@4ax.com>
In reply to#80133
On Sun, 02 Nov 2014 19:42:49 +0000, Mark Lawrence
<breamoreboy@yahoo.co.uk> wrote:

>On 02/11/2014 19:10, Seymore4Head wrote:
>> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
>> <joel.goldstick@gmail.com> wrote:
>>
>>> On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>>>> Huhuai Fan wrote:
>>>>
>>>>> Thanks for your help, but i have no idea to find a project that i can
>>>>> complete,i am now in perplexed for what to do
>>>>
>>>> Then write a small text-based brainstorming app!
>>>>
>>>> --
>>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>> If you like math puzzles you can do the euler project stuff
>>
>> target=1000
>> thelist=[]
>> thesum=0
>> for x in range (1,target):
>>      if x%3==0: thelist.append(x)
>>      if x%5==0 and x%3!=0: thelist.append(x)
>> for x in thelist: thesum+=x
>> print(thelist)
>> print (thesum)
>>
>
>In [1]: help(sum)
>Help on built-in function sum in module builtins:
>
>sum(...)
>     sum(iterable[, start]) -> value
>
>     Return the sum of an iterable of numbers (NOT strings) plus the value
>     of parameter 'start' (which defaults to 0).  When the iterable is
>     empty, return start.

BTW I have the answer to question 2, but there is no way I would run
the code on numbers much more than 100000 and it wants the answer for
4,000,000.

[toc] | [prev] | [next] | [standalone]


#80140

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2014-11-02 17:00 -0500
Message-ID<mailman.15418.1414965656.18130.python-list@python.org>
In reply to#80137
On Sun, Nov 2, 2014 at 4:03 PM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> On Sun, 02 Nov 2014 19:42:49 +0000, Mark Lawrence
> <breamoreboy@yahoo.co.uk> wrote:
>
>>On 02/11/2014 19:10, Seymore4Head wrote:
>>> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
>>> <joel.goldstick@gmail.com> wrote:
>>>
>>>> On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>>>>> Huhuai Fan wrote:
>>>>>
>>>>>> Thanks for your help, but i have no idea to find a project that i can
>>>>>> complete,i am now in perplexed for what to do
>>>>>
>>>>> Then write a small text-based brainstorming app!
>>>>>
>>>>> --
>>>>> https://mail.python.org/mailman/listinfo/python-list
>>>>
>>>> If you like math puzzles you can do the euler project stuff
>>>
>>> target=1000
>>> thelist=[]
>>> thesum=0
>>> for x in range (1,target):
>>>      if x%3==0: thelist.append(x)
>>>      if x%5==0 and x%3!=0: thelist.append(x)
>>> for x in thelist: thesum+=x
>>> print(thelist)
>>> print (thesum)
>>>
>>
>>In [1]: help(sum)
>>Help on built-in function sum in module builtins:
>>
>>sum(...)
>>     sum(iterable[, start]) -> value
>>
>>     Return the sum of an iterable of numbers (NOT strings) plus the value
>>     of parameter 'start' (which defaults to 0).  When the iterable is
>>     empty, return start.
>
> BTW I have the answer to question 2, but there is no way I would run
> the code on numbers much more than 100000 and it wants the answer for
> 4,000,000.
>
> --
> https://mail.python.org/mailman/listinfo/python-list

Seymore, please don't hijack a thread.  Start a new one


-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [prev] | [next] | [standalone]


#80142

FromDave Angel <davea@davea.name>
Date2014-11-02 17:07 -0500
Message-ID<mailman.15419.1414966072.18130.python-list@python.org>
In reply to#80137
On 11/02/2014 04:03 PM, Seymore4Head wrote:
> On Sun, 02 Nov 2014 19:42:49 +0000, Mark Lawrence
> <breamoreboy@yahoo.co.uk> wrote:
>
>> On 02/11/2014 19:10, Seymore4Head wrote:
>>> On Sun, 2 Nov 2014 12:16:11 -0500, Joel Goldstick
>>> <joel.goldstick@gmail.com> wrote:
>>>
>>>> On Sun, Nov 2, 2014 at 10:08 AM, Peter Otten <__peter__@web.de> wrote:
>>>>> Huhuai Fan wrote:
>>>>>
>>>>>> Thanks for your help, but i have no idea to find a project that i can
>>>>>> complete,i am now in perplexed for what to do
>>>>>
>>>>> Then write a small text-based brainstorming app!
>>>>>
>>>>> --
>>>>> https://mail.python.org/mailman/listinfo/python-list
>>>>
>>>> If you like math puzzles you can do the euler project stuff
>>>
>>> target=1000
>>> thelist=[]
>>> thesum=0
>>> for x in range (1,target):
>>>       if x%3==0: thelist.append(x)
>>>       if x%5==0 and x%3!=0: thelist.append(x)
>>> for x in thelist: thesum+=x
>>> print(thelist)
>>> print (thesum)
>>>
>>
>> In [1]: help(sum)
>> Help on built-in function sum in module builtins:
>>
>> sum(...)
>>      sum(iterable[, start]) -> value
>>
>>      Return the sum of an iterable of numbers (NOT strings) plus the value
>>      of parameter 'start' (which defaults to 0).  When the iterable is
>>      empty, return start.
>
> BTW I have the answer to question 2, but there is no way I would run
> the code on numbers much more than 100000 and it wants the answer for
> 4,000,000.
>

So that's teaching you that there must be a more elegant approach than 
brute-force.  Sometimes you can use cleverer programming, sometimes you 
need cleverer math.  Sometimes both.

As a trivial example, suppose you're asked to sum the numbers from 1000 
to 10**25

Brute force would take a few millenia, as something like
     ans = sum(range( BIG ) - sum(range(1000))

But just knowing the math lets you simplify it to something like
    ans = (1000 + BIG) * (BIG - 1000) / 2

(give or take a few plus/minus ones)



-- 
DaveA

[toc] | [prev] | [next] | [standalone]


#80143

FromChris Angelico <rosuav@gmail.com>
Date2014-11-03 09:12 +1100
Message-ID<mailman.15420.1414966384.18130.python-list@python.org>
In reply to#80137
On Mon, Nov 3, 2014 at 9:07 AM, Dave Angel <davea@davea.name> wrote:
> Brute force would take a few millenia, as something like
>     ans = sum(range( BIG ) - sum(range(1000))
>
> But just knowing the math lets you simplify it to something like
>    ans = (1000 + BIG) * (BIG - 1000) / 2

Suggestion: Master the brute-force approach first, and use that (on
small ranges) to verify the simplified version. And if you already
happen to know the sum of all numbers from 1 to 100, say, then you can
test both approaches against that, to be sure they're right.

ChrisA

[toc] | [prev] | [next] | [standalone]


#80127

FromAbhiram <abhi.darkness@gmail.com>
Date2014-11-02 22:51 +0530
Message-ID<mailman.15412.1414948880.18130.python-list@python.org>
In reply to#80119
>> 
>> 
> 
> If you like math puzzles you can do the euler project stuff
> 
> -- 
> Joel Goldstick
> http://joelgoldstick.com
> -- 
> https://mail.python.org/mailman/listinfo/python-list


Ooh. I had to jump onboard to defend this. Project Euler is an absolute delight to do with Python :)
You should totally give it a whirl.

-Abhiram

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web