Flow controls: Loops · 18 / 26 Exercise Medium

Convert integer to binary and hexadecimal

Objective

Create a Python program that asks the user for an integer (x) and displays it in hexadecimal and binary. The program should repeat until the user enters a 0.

Input
25
0
Output
19
11001

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise