Dave Crouse wrote:
I got the same thing with idle, but when running as a script, it's not
the same, it errors. I tried it on Windows and Linux.
---
[da...@arch64 Python]$ less test.py
#/usr/bin/python3
print ('The \"This is a test \" {')
[da...@arch64 Py
I got the same thing with idle, but when running as a script, it's not
the same, it errors. I tried it on Windows and Linux.
---
[da...@arch64 Python]$ less test.py
#/usr/bin/python3
print ('The \"This is a test \" {')
[da...@arch64 Python]$ sh test.py
tes
On 30-Apr-09, at 12:12 AM, Dave Crouse wrote:
Trying to print something with a { in it.
Probably extremely simple, but it's frustrating me. :(
print ('The \"This is a test \" {')
i get this error
ValueError: Single '{' encountered in format string
Worked perfectly for me.
===
$ python3.0
The double {{ }} worked perfectly, THANK YOU ! :)
This was driving me crazy.
On Wed, Apr 29, 2009 at 2:03 PM, Kent Johnson wrote:
> print ('The \"This is a test \" {')
>
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/
On Wed, Apr 29, 2009 at 2:42 PM, Dave Crouse wrote:
> Trying to print something with a { in it.
> Probably extremely simple, but it's frustrating me. :(
>
> print ('The \"This is a test \" {')
>
> i get this error
>
> ValueError: Single '{' encountered in format string
It works for me:
Python 3.
Trying to print something with a { in it.
Probably extremely simple, but it's frustrating me. :(
print ('The \"This is a test \" {')
i get this error
ValueError: Single '{' encountered in format string
___
Tutor maillist - Tutor@python.org
http://ma