What is the reason from different output generate using logical 'and' and 'or' operator in Python 3.10.8

2022-11-07 Thread ICT Ezy
Please explain how to generate different output in following logical operations >>> 0 and True 0 >>> 0 or True True >>> 1 and True True >>> 1 or True 1 -- https://mail.python.org/mailman/listinfo/python-list

Re: Indentation example?

2016-06-13 Thread ICT Ezy
On Monday, June 13, 2016 at 3:09:15 AM UTC+5:30, Marc Dietz wrote: > On Sun, 12 Jun 2016 08:10:27 -0700 ICT Ezy wrote: > > > Pl explain with an example the following phase "Indentation cannot be > > split over multiple physical lines using backslashes; the whitespace up >

Re: Indentation example?

2016-06-12 Thread ICT Ezy
On Sunday, June 12, 2016 at 9:36:16 PM UTC+5:30, Steven D'Aprano wrote: > On Mon, 13 Jun 2016 01:10 am, ICT Ezy wrote: > > > Pl explain with an example the following phase > > "Indentation cannot be split over multiple physical lines using > > backslashes; the wh

Re: Indentation example?

2016-06-12 Thread ICT Ezy
On Sunday, June 12, 2016 at 9:46:00 PM UTC+5:30, Ned Batchelder wrote: > On Sunday, June 12, 2016 at 11:10:39 AM UTC-4, ICT Ezy wrote: > > Pl explain with an example the following phase > > "Indentation cannot be split over multiple physical lines using > > backslashes

Re: Indentation example?

2016-06-12 Thread ICT Ezy
On Sunday, June 12, 2016 at 9:36:16 PM UTC+5:30, Steven D'Aprano wrote: > On Mon, 13 Jun 2016 01:10 am, ICT Ezy wrote: > > > Pl explain with an example the following phase > > "Indentation cannot be split over multiple physical lines using > > backslashes; the wh

Indentation example?

2016-06-12 Thread ICT Ezy
Pl explain with an example the following phase "Indentation cannot be split over multiple physical lines using backslashes; the whitespace up to the first backslash determines the indentation" (in 2.1.8. Indentation of Tutorial.) I want to teach my student that point using some examples. Pl help

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Sunday, June 5, 2016 at 10:49:49 PM UTC+5:30, Random832 wrote: > On Sun, Jun 5, 2016, at 02:53, ICT Ezy wrote: > > >>> 2 ** 3 ** 2 > > Answer is 512 > > Why not 64? > > Order is right-left or left-right? > > You're mixing up order of evaluation

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Monday, June 6, 2016 at 5:18:21 AM UTC+5:30, Michael Torrie wrote: > On 06/05/2016 10:05 AM, Uri Even-Chen wrote: > > My suggestion: Never write expressions, such as 2 ** 3 ** 2 or even 2 * 4 > > + 5, without parentheses. Always add parentheses - 2 ** (3 ** 2) (or (2 ** > > 3) **2) or (2 * 4) +

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
r.com/urievenchen> > > On Sun, Jun 5, 2016 at 6:05 PM, ICT Ezy wrote: > > > On Sunday, June 5, 2016 at 1:06:21 PM UTC+5:30, Peter Otten wrote: > > > ICT Ezy wrote: > > > > > > >>>> 2 ** 3 ** 2 > > > > Answer is 512 > > >

how to work await x operator?

2016-06-05 Thread ICT Ezy
how to work await x Await expression operator? pl explain any one ... -- https://mail.python.org/mailman/listinfo/python-list

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Sunday, June 5, 2016 at 1:06:21 PM UTC+5:30, Peter Otten wrote: > ICT Ezy wrote: > > >>>> 2 ** 3 ** 2 > > Answer is 512 > > Why not 64? > > Order is right-left or left-right? > > ** is a special case: > > """ > The pow

Operator precedence problem

2016-06-04 Thread ICT Ezy
>>> 2 ** 3 ** 2 Answer is 512 Why not 64? Order is right-left or left-right? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 11:11:22 AM UTC-8, Igor Korot wrote: > Hi, > > On Fri, Dec 11, 2015 at 2:00 PM, ICT Ezy wrote: > > On Friday, December 11, 2015 at 10:52:49 AM UTC-8, larry@gmail.com > > wrote: > >> On Fri, Dec 11, 2015 at 1:36 PM, ICT E

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:52:49 AM UTC-8, larry@gmail.com wrote: > On Fri, Dec 11, 2015 at 1:36 PM, ICT Ezy wrote: > > On Wednesday, December 9, 2015 at 9:58:02 AM UTC-8, Chris Angelico wrote: > >> On Thu, Dec 10, 2015 at 4:51 AM, ICT Ezy wrote: > >> >

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:52:49 AM UTC-8, larry@gmail.com wrote: > On Fri, Dec 11, 2015 at 1:36 PM, ICT Ezy wrote: > > On Wednesday, December 9, 2015 at 9:58:02 AM UTC-8, Chris Angelico wrote: > >> On Thu, Dec 10, 2015 at 4:51 AM, ICT Ezy wrote: > >> >

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:27:29 AM UTC-8, Jussi Piitulainen wrote: > ICT Ezy writes: > > On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > >> > >> No, it actually happens left to right. "x = y = z = 0" means "assign > >>

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:27:29 AM UTC-8, Jussi Piitulainen wrote: > ICT Ezy writes: > > On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > >> > >> No, it actually happens left to right. "x = y = z = 0" means "assign > >>

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Wednesday, December 9, 2015 at 1:45:26 PM UTC-8, Mark Lawrence wrote: > On 09/12/2015 17:51, ICT Ezy wrote: > > Pl explain me how to connect the MYSQL database to Python program? > > > > Use a search engine. Then run up an editor, write some code, run said > code. I

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:36:33 AM UTC-8, ICT Ezy wrote: > On Wednesday, December 9, 2015 at 9:58:02 AM UTC-8, Chris Angelico wrote: > > On Thu, Dec 10, 2015 at 4:51 AM, ICT Ezy wrote: > > > Pl explain me how to connect the MYSQL database to Python program? > >

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Wednesday, December 9, 2015 at 9:58:02 AM UTC-8, Chris Angelico wrote: > On Thu, Dec 10, 2015 at 4:51 AM, ICT Ezy wrote: > > Pl explain me how to connect the MYSQL database to Python program? > > You start by looking for a module that lets you do that. You can use > your fa

Re: How to connect the MYSQL database to Python program?

2015-12-11 Thread ICT Ezy
On Wednesday, December 9, 2015 at 1:45:26 PM UTC-8, Mark Lawrence wrote: > On 09/12/2015 17:51, ICT Ezy wrote: > > Pl explain me how to connect the MYSQL database to Python program? > > > > Use a search engine. Then run up an editor, write some code, run said > code. I

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:20:30 AM UTC-8, Michael Torrie wrote: > On 12/11/2015 11:05 AM, ICT Ezy wrote: > > Deat Ian, Thank you very much your answer, but above answer from > > Robin Koch and your answer is different. What's the actually process > > here? I

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 9:53:10 AM UTC-8, Robin Koch wrote: > Am 11.12.2015 um 17:39 schrieb Ian Kelly: > > On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: > >> Assigning goes from right to left: > >> > >> x,y=y,x=2,3 > >> > >> <=> > >> > >> y, x = 2, 3 > >> x, y = y, x > >> > >> Otherw

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: > > Assigning goes from right to left: > > > > x,y=y,x=2,3 > > > > <=> > > > > y, x = 2, 3 > > x, y = y, x > > > > Otherwise the assignment x, y = y, x would not make any sense, since

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 8:24:45 AM UTC-8, Robin Koch wrote: > Am 11.12.2015 um 17:10 schrieb ICT Ezy: > > Dear All, > > Very Sorry for the my mistake here. I code here with mu question ... > > > > My Question: > > > > A,B=C,D=10,11 > > pri

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
Dear All, Very Sorry for the my mistake here. I code here with mu question ... My Question: A,B=C,D=10,11 print(A,B,C,D) #(10,11,10,11) --> This is OK! a=1; b=2 a,b=b,a print(a,b) # (1,2) --> This is OK! x,y=y,x=2,3 print(x,y) # (3,2) --> Question: How to explain it? # Not understand this proce

How to connect the MYSQL database to Python program?

2015-12-09 Thread ICT Ezy
Pl explain me how to connect the MYSQL database to Python program? -- https://mail.python.org/mailman/listinfo/python-list

Python variable assigning problems...

2015-12-09 Thread ICT Ezy
Pl refer question which attached image here: link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 -- https://mail.python.org/mailman/listinfo/python-list