Post Reply 
Error is not an Error?
06-17-2021, 10:46 AM
Post: #3
RE: Error is not an Error?
HP Prime Python (micro Python?) might not support f string

Try string interpolation with format(), or %

On Python 2.6:

>>> z1, z2, z3, im = 1,2,3,4
>>> print "{ %6.4f, %6.4f + %6.4fj, %6.4f - %6.4fj }" % (z1,z2,im,z3,im)
{ 1.0000, 2.0000 + 4.0000j, 3.0000 - 4.0000j }
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Error is not an Error? - toml_12953 - 06-17-2021, 05:13 AM
RE: Error is not an Error? - Liamtoh Resu - 06-17-2021, 08:48 AM
RE: Error is not an Error? - toml_12953 - 06-17-2021, 02:28 PM
RE: Error is not an Error? - Albert Chan - 06-17-2021 10:46 AM
RE: Error is not an Error? - Thomas_Sch - 06-17-2021, 11:32 AM
RE: Error is not an Error? - toml_12953 - 06-17-2021, 02:57 PM
RE: Error is not an Error? - Albert Chan - 06-20-2021, 03:25 PM
RE: Error is not an Error? - Liamtoh Resu - 06-17-2021, 06:30 PM



User(s) browsing this thread: 1 Guest(s)