Skip to main content

Posts

Showing posts from May, 2018
Data classes in Python 3.7 With Python 3.7 will come some new interesting stuffs. Let's see what data classes are and how to use them. Let's read this article to see read about data classes.

Formatting strings in Python 3.6 and above

String formatting in Python 3.6 From Python 3.6 there a new way to format string that is very cool and very interesting. Let's dive into it through this artichle from realpython. Go, let's read it.

How to solve equations with Python and Sympy

How to solve equations with Python Let's install Sympy, a module to solve equations: open cmd (windows button + r) digit cmd in cmd digit: pip install Sympy Once you installed Sympy, close the cmd, open it again, digit python. Now that you have the python interpreter opened, digit this:     >>> import sympy     >>> x = sympy .Symbol('x') Now, let's make an example of how to solve an equation like this:     >>> sympy .solve(x**2+5*x-6)     [-6,1]