Python For Chemistry

 Instructions Home




 


















SELECTED PYTHON FOR CHEMISTRY

Rh = 2.180e-18

energy_level = ((1.0/4.0)-(1.0/25.0))

answer = Rh * energy_level

print(answer)


chemistry_word = "Atom"

print(chemistry_word)


integer = 2

print(integer)


float = 2.3

print(float)


list = [2.3, 4, "hello"]

print(list)


float = 4.56775

answer = round(float, 3)

print(answer)


number_one = 5

number_two = 7

add = number_one + number_two

print(add)


number_one = 5

number_two = 7

subtract = number_one - number_two

print(subtract)


number_one = 5

number_two = 7

divide = number_two / number_one

print(divide)


number_one = 5

number_two = 7

multiply = number_one * number_two

print(multiply)


number_one = 5

number_two = 7

power = number_one ** number_two

print(power)


measurements_in_L = [1.2, 3.4, 6.6, 7.8, 4.4]

for i in measurements_in_L:

    measurements_in_ml = i * 1000

    print(measurements_in_ml)