July 21, 2022, 4:01 p.m. | Rijul Singh Malik

Towards AI - Medium pub.towardsai.net

A blog covering best practices in python.

Photo by Nubelson Fernandes on Unsplash

1. Using ‘with’ for cleaner code.

Python is a beautiful language, but it’s not necessarily very pretty. For example, what is the code below supposed to do? It looks like it’s setting the variable x to 1, but it’s actually setting it to True. It goes on to print “x is true” which is not the same as “x is set to True”. If you don’t believe …

developer developer-tools python python3 python-programming

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US