Python Function

This topic is to discuss the following lesson:

I think it will be easier if you just use print(“Connecting to device”, device_name, “initiated”)
I think the %s % is not used anymore.

Hello Diego

Yes, for Python 3, and later back-ported to Python 2.7, it is possible to do a more “regular” formatting of strings rather than using the %s format. This is considered the “new style” compared to the use of the % operator.

Thanks for sharing!

Laz