repl.it
@SushaanPatel/

Phy & Chem

Python

No description

fork
loading
Files
  • main.py
  • usermodule.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
x=input("Choose\n1.Density=d\n2.Relative Density=rd\n3.Force=f\n")

if x=='d':
  m=float(input("Enter Mass (g)\n"))
  v=float(input("Enter Volume (cm3)\n"))
  f=m/v
  a=0
  i=0
  print (f, "g/cm3")
if x=='rd':
  m=float(input("Enter Density of Substance (g/cm3)\n"))
  v=float(input("Enter Denisty of Reference (g/cm3)\n"))
  i=m/v
  a=0
  f=0
  print (i,"g/cm3")
if x=='f':
  m=float(input("Enter Mass\n"))
  v=float(input("Enter Acceleration\n"))
  a=m*v
  f=0
  i=0
print (a,"N")
?