Skip to content

Commit 902a6c1

Browse files
authored
Correct inch_to_cm function and print statement
Fix function name and syntax errors in inches_to_cm.py
1 parent c936457 commit 902a6c1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

inches_to_cm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def inch_to_cm(inch)
2+
return inch * 2.54
3+
n = int(input('enter value in inches: "))
4+
print(f"the corresponding vlaue in cms is (inches_to_cms(n)}")

0 commit comments

Comments
 (0)