Posts by Lucas Batista • 1 point
2 posts
-
0
votes2
answers967
viewsQ: I want to close a python file and then open it again
Do not call the variables name. When the program tries to open the file after closed, it does not open. from time import strftime n = 2 cl = 2 abrir_arquivo =…
-
0
votes2
answers259
viewsQ: I’m trying to do Bhaskara in Python and even with the highlighted if programming says I can’t turn a Complex into float
a = float(input("A = ")) b = float(input("B = ")) c = float(input("C = ")) delta = float(b**2-4*a*c) raiz = (delta ** 0.5) if raiz is float or int: raiz = float(delta **…
pythonasked Lucas Batista 1