Re: Python-list Digest, Vol 196, Issue 26

2020-01-26 Thread אורי
Please don't reply to digest. אורי u...@speedy.net On Mon, Jan 27, 2020 at 8:11 AM Francois van Lieshout < fvliesh...@outlook.com> wrote: > for x in range( 0,10 ): > stars = "" > count = 0 > > while count < x: > stars += "x" > count += 1 > print( stars ) > > x > xx > xxx > xx

RE: Python-list Digest, Vol 196, Issue 26

2020-01-26 Thread Francois van Lieshout
for x in range( 0,10 ): stars = "" count = 0 while count < x: stars += "x" count += 1 print( stars ) x xx xxx x xx xxx x You've got already an "x" placed in your variable stars that's why. -Oorspronkelijk bericht- Van: Python-list

Re: Nested Loop Code Help

2020-01-26 Thread DL Neil via Python-list
On 27/01/20 1:53 PM, Richard Damon wrote: On 1/26/20 6:52 PM, DL Neil via Python-list wrote: On 27/01/20 4:15 AM, ferzan saglam wrote: Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I ha

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
On 1/26/20 6:52 PM, DL Neil via Python-list wrote: On 27/01/20 4:15 AM, ferzan saglam wrote: Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I have tried everything in my knowledge, but ca

Re: PEP-Dilbert

2020-01-26 Thread Peter J. Holzer
On 2020-01-27 13:02:03 +1300, DL Neil via Python-list wrote: > Looks as if Dilbert is about to draft a PEP to change Python's world-view: > https://dilbert.com/strip/2020-01-24 > > Curiously, "canard" whilst a French word for "duck", in English describes a > rumor or false-story! Interesting: In

PEP-Dilbert

2020-01-26 Thread DL Neil via Python-list
Looks as if Dilbert is about to draft a PEP to change Python's world-view: https://dilbert.com/strip/2020-01-24 Curiously, "canard" whilst a French word for "duck", in English describes a rumor or false-story! -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Nested Loop Code Help

2020-01-26 Thread DL Neil via Python-list
On 27/01/20 4:15 AM, ferzan saglam wrote: Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I have tried everything in my knowledge, but cannot fix the problem. Thanks for any help in advance.

Re: I need help for multidimensional loop

2020-01-26 Thread DL Neil via Python-list
On 27/01/20 12:08 PM, pyotr filipivich wrote: Growth Hacking Formation on Sun, 26 Jan 2020 12:36:05 -0800 (PST) typed in comp.lang.python the following: Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is jus

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
On 1/26/20 6:11 PM, Greg Ewing wrote: On 27/01/20 4:15 am, ferzan saglam wrote: for x in range ( 0, 10):    stars = 'x'    count = 0 By the way, this 'for' loop is unnecessary. The end result is just to give initial values to three names. You don't need a loop at all for that, just three assign

Re: Nested Loop Code Help

2020-01-26 Thread Greg Ewing
On 27/01/20 4:15 am, ferzan saglam wrote: for x in range ( 0, 10): stars = 'x' count = 0 By the way, this 'for' loop is unnecessary. The end result is just to give initial values to three names. You don't need a loop at all for that, just three assignment statements.

Re: I need help for multidimensional loop

2020-01-26 Thread pyotr filipivich
Growth Hacking Formation on Sun, 26 Jan 2020 12:36:05 -0800 (PST) typed in comp.lang.python the following: >Hi guys, > >I need your help please to sold a complicate problem. > >It is difficult for me to find the solution but in fact, I am sure it is just >a few lines of code. > >The problem is a

Re: I need help for multidimensional loop

2020-01-26 Thread Python
Le 26/01/2020 à 21:36, Growth Hacking Formation a écrit : Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is just a few lines of code. The problem is about some kind of multidimensional loop with some test IF

I need help for multidimensional loop

2020-01-26 Thread Growth Hacking Formation
Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is just a few lines of code. The problem is about some kind of multidimensional loop with some test IF. I worked hours on it, but I am a newbie and it is too dif

Re: Nested Loop Code Help

2020-01-26 Thread Richard Damon
On 1/26/20 10:15 AM, ferzan saglam wrote: Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I have tried everything in my knowledge, but cannot fix the problem. Thanks for any help in advance.

Re: PyQt5 help.

2020-01-26 Thread Abdur-Rahmaan Janhangeer
suggest a scrollable widget which on loads appends labels with members birthdays in it. If 3 members have birthdays today, it will append 3 labels On Sun, 26 Jan 2020, 21:39 Souvik Dutta, wrote: > I am making a birthday reminder app. I want to show tha label (" Today is > Tom's birthday.") Assu

PyQt5 help.

2020-01-26 Thread Souvik Dutta
I am making a birthday reminder app. I want to show tha label (" Today is Tom's birthday.") Assuming Tom has a birthday. But I want this label to be visible only when someone has a birthday today. I am using datetime module to check the date. How can I do this?? Any help is appreciated. -- https:/

Re: Nested Loop Code Help

2020-01-26 Thread ferzan saglam
On Sunday, January 26, 2020 at 3:26:40 PM UTC, Dan Purgert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > ferzan saglam wrote: > > Hello people, I have written the code below which works fine, but it > > has one small problem. Instead of printing one (x) on the first line, > > it p

Re: Nested Loop Code Help

2020-01-26 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 ferzan saglam wrote: > Hello people, I have written the code below which works fine, but it > has one small problem. Instead of printing one (x) on the first line, > it prints two. > I have tried everything in my knowledge, but cannot fix the problem

Nested Loop Code Help

2020-01-26 Thread ferzan saglam
Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I have tried everything in my knowledge, but cannot fix the problem. Thanks for any help in advance. for x in range ( 0, 10):