-2
# Write Python code that stores the distance
# in meters that light travels in one
# nanosecond in the variable, nanodistance.
# These variables are defined for you:
speed_of_light = 299800000. # meters per second
nano_per_sec = 1000000000. # 1 billion
# After your code,running
# print nanodistance
# should output 0.2998
# Note that nanodistance must be a decimal number.
# ASSIGN nanodistance BELOW this line
------------------------------------------
speed_of_light/nano_per_sec = nanodistance
print nanodistance
'올바르지 않습니다. 코드를 실행하는 중에 오류가 발생했습니다. 동일한 줄에 코드 앞에 공백이 없는지 확인하십시오. '거리를 저장하는 파이썬 코드
왜 작동하지 않습니까?
나는, 내가 그것을 할 수 있다고 생각 print nanodistance = 0.2998
인쇄 nanodistance = speed_of_light/nano_per_sec 중 하나가 작동하지 않습니다하지만 이 nanodistance = speed_of_light/nano_per_sec이 있는지 확인 –
이있다 함수 정의 안에 있지 않는 한 지시에 공백이 없습니다. – Barranka
이것은 숙제와 같습니다 ... – wflynny