python-string-formatting-English.pdf - String Formatting...

This preview shows page 1 out of 1 page.

String FormattingGiven an integer,, print the following values for each integerfromto:1. Decimal2. Octal3. Hexadecimal (capitalized)4. BinaryThe four values must be printed on a single linein the order specified abovefor eachfromto. Eachvalue should be space-padded to match the width of thebinaryvalue of.Input FormatA single integer denoting.ConstraintsOutput FormatPrintlines where each line(in the range
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
AricPutnam
Tags
Binary numeral system, following values, printed value

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture