Conversion
Write a program that receives some as a warm from the user and converts to kilograms
Example:
Write a program that receives some as a warm from the user and converts to kilograms
Example:
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
g=float(input("g")) k=(g/1000) print(k)
gram = int(input("entre your number:")) kilo = 1000 x = gram / kilo print(f"kiogram:{x}")
g=input(Enter your g) print(g/1000)
class Math: def __init__(self, vazn): self.vazn=vazn def Print(self): return self.vazn/1000 vazn=int(input("enter vazn :")) obj=Math(vazn) print(obj.Print(),"kg")
print('وزن به کلیو گرم:', int(input("وزن به گرم"))/1000)
a=float(input("g: ") Print(a/1000,"kg")
geram = float(input("please enter a number(gr): ")) print(f"{geram} gram barabar ast ba:", geram / 1000, "kg")
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.