Here's the source code...
LED_Numbers.fal |
---|
leds = ["0" => [" _ ","| | ","|_| "], "1" => [" ","| ","| "], "2" => [" _ "," _| ","|_ "], "3" => ["_ ","_| ","_| "], "4" => [" ","|_| "," | "], "5" => [" _ ","|_ "," _| "], "6" => [" _ ","|_ ","|_| "], "7" => ["_ "," | "," | "], "8" => [" _ ","|_| ","|_| "], "9" => [" _ ","|_| "," _| "]] print("Enter a number: ") number = input() len = number.len() for i in [0:3] for j in [0:len] print(leds[number[j]][i]) end printl("") end |
And of course...here are the pictures...
Greetings,
Blag.
Development Culture.
No hay comentarios:
Publicar un comentario