Posts by RNG nick's • 91 points
3 posts
-
5
votes5
answers80372
viewsA: How to "round" a float in Python?
You can use the . format You go for something like: print("text that will use {}".format(the variable you used)) Note that inside the quotes "" go two {} inside the {} you will put {:. Nf} "N" is a…
-
-4
votes1
answer134
viewsQ: Check which one is larger using a python formula
I need to use this formula and read three values and present the largest of the three values read. Formula: MaiorAB = (a+b+abs(a-b))/2 All three values are on the same receiving line. EX: MaiorAB =…
-
1
votes1
answer24100
viewsQ: Input numbers in the same line in python
I need to read three values in a single variable being the third with comma. Input: two data lines. In each row there will be 3 values, respectively two integers and a value with 2 decimal places.…