Distance traveled by light
Write a program that receives time in seconds and determines that the light in that period of time can take a few meters
Consider the speed of light 300,000,000 m / s
Write a program that receives time in seconds and determines that the light in that period of time can take a few meters
Consider the speed of light 300,000,000 m / s
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
S=int(input("s: ")) print(S*300000000,"M")
y = int(input("zaman ra bar hasb sanie vared konid: ")) x = y * 300000000 print('masaafati ke noor dar modat zaman khaste shode tey mikonad barabar ast ba: ',x,'metr')
TM = int(input("Enter time (in seconds): ")) print(TM*300000000,"m")
while True: try: time = int(input('time in seconds: ')) print(f'light goes {time * 300000000} meters in {time} seconds') break except: print('enter a number')
while True: soratenor = int(input('enter the time in second : ')) print('soratenor is : ' , soratenor* 300,000,000) if soratenor is not int: l = input('if you want to leave enter the *leave* word : ') if l == 'leave': break else: continue
# secend = int(input('secend: ')) i = 0 while secend > i: print(i * 3000000000) i += 1
zaman = int(input("time: ")) resault = (zaman * 300000000) print (resault)
Submitting answers is currently unavailable.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.