Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83886 > unrolled thread
| Started by | Mirage Web Studio <miragewebstudio12@gmail.com> |
|---|---|
| First post | 2015-01-16 22:31 +0530 |
| Last post | 2015-01-16 09:57 -0800 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to "wow" someone new to Python Mirage Web Studio <miragewebstudio12@gmail.com> - 2015-01-16 22:31 +0530
Re: How to "wow" someone new to Python Rustom Mody <rustompmody@gmail.com> - 2015-01-16 09:31 -0800
Re: How to "wow" someone new to Python Chris Angelico <rosuav@gmail.com> - 2015-01-17 04:44 +1100
Re: How to "wow" someone new to Python Emile van Sebille <emile@fenx.com> - 2015-01-16 09:57 -0800
| From | Mirage Web Studio <miragewebstudio12@gmail.com> |
|---|---|
| Date | 2015-01-16 22:31 +0530 |
| Subject | Re: How to "wow" someone new to Python |
| Message-ID | <mailman.17797.1421428857.18130.python-list@python.org> |
On 01/16/2015 08:33 PM, Chris Angelico wrote: > Scenario: You're introducing someone to Python for the first time. > S/he may have some previous programming experience, or may be new to > the whole idea of giving a computer instructions. You have a couple of > minutes to show off how awesome Python is. What do you do? > > I was thinking along the lines of a simple demo in the REPL, showing > off some of Python's coolest features. But then I got stuck on the > specifics. What are Python's best coolnesses? What makes for a good > demo? > > Ideally, this should be something that can be demo'd quickly and > easily, and it should be impressive without going into great details > of "and see, this is how it works on the inside". So, how would you > brag about this language? > > ChrisA hello, I am a newbie to python, I have dwelled in c,qt none in java. php a lot, though I don't make money with any of those. The best thing I find is python is very easy, the best part maybe because of my inexperience with other languages are the List and Dict data types that just solved problems I had in real life made solvable with python very easily. when I had to worry about memory and pointers to memory in those other languages, python just made me focus on the solution I want. also the way I can read python program just like they are written in plain eglish :) a personal problem I tried to solve is that how many characters exist in a sequence statistically (with 2 or more characters in len) in any given file and then their count. For a 100kb file I used practially all programming knowledge in from the other languages but failed miserably as the computation were taking more time with each bigger chunck of file. I would have to do a lot of memery management with python using those style like deleting list and dict before adding another. but when I tried to solve the problem natively with python it just took a blink of an eye for them to solve upto 50kb file. but for larger files although instant it is just memory consuming since I was limit with 2 gb I ddin't poke further. this was my exp and I find programming fun in python like ironman talking to jarvis keep computing!!! GCM
[toc] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2015-01-16 09:31 -0800 |
| Message-ID | <c2eb4253-e70d-487c-9cd2-701373925a8e@googlegroups.com> |
| In reply to | #83886 |
On Friday, January 16, 2015 at 10:51:52 PM UTC+5:30, Mirage Web Studio wrote: > On 01/16/2015 08:33 PM, Chris Angelico wrote: > > Scenario: You're introducing someone to Python for the first time. > > S/he may have some previous programming experience, or may be new to > > the whole idea of giving a computer instructions. You have a couple of > > minutes to show off how awesome Python is. What do you do? > > > > I was thinking along the lines of a simple demo in the REPL, showing > > off some of Python's coolest features. But then I got stuck on the > > specifics. What are Python's best coolnesses? What makes for a good > > demo? > > > > Ideally, this should be something that can be demo'd quickly and > > easily, and it should be impressive without going into great details > > of "and see, this is how it works on the inside". So, how would you > > brag about this language? > > > > ChrisA > > hello, > > I am a newbie to python, I have dwelled in c,qt none in java. php a lot, > though I don't make money with any of those. > > The best thing I find is python is very easy, the best part maybe > because of my inexperience with other languages are the List and Dict > data types that just solved problems I had in real life made solvable > with python very easily. when I had to worry about memory and pointers > to memory in those other languages, python just made me focus on the > solution I want. Nice point! First class concrete data structures is a blessing especially for a C programmer. Here is an old Guido workout of dicts https://www.python.org/doc/essays/graphs/ Probably can be improved to use comprehensions
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-01-17 04:44 +1100 |
| Message-ID | <mailman.17799.1421430265.18130.python-list@python.org> |
| In reply to | #83887 |
On Sat, Jan 17, 2015 at 4:31 AM, Rustom Mody <rustompmody@gmail.com> wrote: > Nice point! > First class concrete data structures is a blessing especially for > a C programmer. Definitely! Worth noting. There've been some nice concepts mentioned; concrete suggestions would be good too. Some specific feature or exact line of code that would show off Python's awesomeness. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Date | 2015-01-16 09:57 -0800 |
| Message-ID | <mailman.17802.1421431062.18130.python-list@python.org> |
| In reply to | #83887 |
On 1/16/2015 9:44 AM, Chris Angelico wrote: <snip> > exact line of code that would > show off Python's awesomeness. a,b = b,a Emile
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web