0

I am trying to convert inches into height and inches using the feet'inches format yet I cant seem to get rid of the whitespace in-between the characters.

height1 = height // 12
height2 = height % 12
print(height1, '\', height2)

this is my current code

5 ' 9 this is the output 5'9 i need this to be the output

Selcuk
  • 57,004
  • 12
  • 102
  • 110
abpe
  • 1
  • 1

1 Answers1

0

You can use string concatenation directly or an f-string.

print(f"{height1}'{height2}")
Unmitigated
  • 76,500
  • 11
  • 62
  • 80