-1

I'm having trouble figuring out how to print a very specific line.

I tried using .format and I also tried the print("str",variable,"str") method but I can't seem to figure out how to make it print correctly.

feet=5
inches=6

print('Room Length:{}' {}"'.format(feet,inches))

I want the computer to print; Room Length: 5' 6" but I am not sure how to print this while keeping the apostrophe and the quotations for feet and inches.

OneCricketeer
  • 151,199
  • 17
  • 111
  • 216

1 Answers1

1
print('Room Length:{}\' {}\"'.format(feet,inches))
moys
  • 7,302
  • 2
  • 7
  • 28