Re: Nested for loops and print statements

2016-09-25 Thread Terry Reedy
On 9/26/2016 1:59 AM, Cai Gengyang wrote: Why is it that you need a print() at the end to create the table for example 1: Example 1 --- for row in range(10): for column in range(10): print("*",end=" ") # Print a blank line for next row print() These indents are either 4

Re: Nested for loops and print statements

2016-09-25 Thread Jussi Piitulainen
Cai Gengyang writes: > Why is it that you need a print() at the end to create the table for > example 1: > > Example 1 --- > for row in range(10): > for column in range(10): > print("*",end=" ") > > # Print a blank line for next row > print() [- -] > When I try to do e

Nested for loops and print statements

2016-09-25 Thread Cai Gengyang
Why is it that you need a print() at the end to create the table for example 1: Example 1 --- >>> for row in range(10): for column in range(10): print("*",end=" ") # Print a blank line for next row print() * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Re: Stompy

2016-09-25 Thread Jason Friedman
> > My error: >> Traceback (most recent call last): >> File "temp.py", line 8, in >> my_stomp.connect(AMQ_USERNAME, AMQ_PASSWORD) >> File "/lclapps/oppen/thirdparty/stompy/stomp.py", line 48, in connect >> self.frame.connect(self.sock, username=username, password=password, >> clientid=

Re: Is 'learning python 5th edition' a good book to beginner?

2016-09-25 Thread boB Stepp
On Sun, Sep 25, 2016 at 3:50 PM, Lawrence D’Oliveiro wrote: > Judging from the table of contents > , it spends too much time > (i.e. > 0) talking about Python 2. I own this book. The 5th edition covers both Python 3.3 and 2.7. Its emphasis is

Dynamically updating Graph in python

2016-09-25 Thread anujgupta82
0 down vote favorite I have a M x N 2D array: ith row represents that value of N points at time i. I want to visualize the points [1 row of the array] in the form of a graph where the values get updated after a small interval. Thus the graph shows 1 row at a time, then update the valu

Re: Is 'learning python 5th edition' a good book to beginner?

2016-09-25 Thread Lawrence D’Oliveiro
Judging from the table of contents , it spends too much time (i.e. > 0) talking about Python 2. -- https://mail.python.org/mailman/listinfo/python-list

Is 'learning python 5th edition' a good book to beginner?

2016-09-25 Thread 380162267qq
I want to find a python book like C++ primer which provides me details to understand the language. -- https://mail.python.org/mailman/listinfo/python-list

Re: Stompy

2016-09-25 Thread MRAB
On 2016-09-25 18:46, Jason Friedman wrote: My goal is to send messages to an AMQ server using Python 3.3. I found Stompy and performed 2to3-3.3 before building. I am open to non-Stompy solutions. My code: from stompy.stomp import Stomp my_stomp = Stomp(AMQ_HOST, AMQ_PORT) my_stomp.connect(AMQ_

Stompy

2016-09-25 Thread Jason Friedman
My goal is to send messages to an AMQ server using Python 3.3. I found Stompy and performed 2to3-3.3 before building. I am open to non-Stompy solutions. My code: from stompy.stomp import Stomp my_stomp = Stomp(AMQ_HOST, AMQ_PORT) my_stomp.connect(AMQ_USERNAME, AMQ_PASSWORD) My error: Traceback

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Steve D'Aprano
On Sun, 25 Sep 2016 09:08 am, Thomas 'PointedEars' Lahn wrote: > Christian Gollwitzer wrote: > >> Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: >>> Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Christian Gollwitzer
Am 25.09.16 um 01:08 schrieb Thomas 'PointedEars' Lahn: Christian Gollwitzer wrote: Am 17.09.16 um 23:19 schrieb Thomas 'PointedEars' Lahn: Peng Yu wrote: Hi, I want to convert strings in which the characters with accents should be converted to the ones without accents. […] […] ./main.py Fö

Re: How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

2016-09-25 Thread Martin Schöön
Den 2016-09-25 skrev wxjmfa...@gmail.com : > > As an European guy, I recommend to use the characters > set used in the "official" font families used in Germany: > BundesSerif / BundesSans. > > See > https://styleguide.bundesregierung.de/Webs/SG/DE/PrintMedien/Basiselemente/Schriften/schriften_node.