bug in python 3.10.4

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu May 26 11:35:28 EDT 2022


On Thu, 26 May 2022 19:56:16 +1200, dn <PythonList at DancesWithMice.info>
declaimed the following:

	Commentary meant for the OP, not "dn".

>Please reply to the list. Others may be able to assist (particularly if
>they use MS-Windows!).
>
>
>> Removing the  quit does not help with the problem.
>> 
>> input 10 x 10

	Cut&Paste the entire text of the console window (not a screen grab)
showing the invocation and the output, if any. NOTE: This presumes you know
how to use the Windows command line. Double-clicking a .py file seldom
produces a usable stuff as the console opened is automatically closed when
the program exits. If you need to see the output, you need to put in some
code to make the program /wait/ until you signal that you are done.

>
>What was the result, or the exception report.
>
>Once again: did MS-Windows finish the job and close the window before
>you could see the result?

<SNIP>

>>> number_1 = input("put a number\n")

	This is going to wait at the console until you enter a value.

>>> if operations == "+":
>>>
>>>     print(number_1+number_2)
>>>
>>> elifoperations.lower() == "x":

	Is that REALLY what the code has? I'd expect

		"elifoperations"

to produce a syntax error of some sort since there is no apparent space
between the "elif" and "operations".

{stylistic note: "operations" is misleading -- it is just ONE OPERATOR}


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/


More information about the Python-list mailing list