I'm quite new to programming and i'm trying to write a formula to work out the capacitance of capacitors - and is what I have below. I then want to convert the value I have (in pico farrads) into micro farrads.
Here's what I have so far:
while True: x=float(input("First number: ")) y=float(input("Second number: ")) z=float(input("Third number: ")) x=int(x) y=int(y) z=int(z) print(int(str(x)+str(y))*10**z) replay=input("Would you like to calculate again? (yes/no) ") print('\n') if replay=="no": print("...Terminated Program.") break print('\n')
I want to assign the variable 'pf' to the result of line 11, so that I can then multiply the result by *10**-3. I've tried a few things but nothing seems to work. The rest of the script is as it should be and works fine, I just want to be able to add the ability to do what I said above.