Example code - Basics: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

1 March 2024

  • curprev 16:3216:32, 1 March 2024WikiSysop talk contribs 1,192 bytes +1,192 Created page with "== Decimal to Binary number converter == I am a bit unhappy about this example due to the required knowledge of binary numbers, but as such the example is great.<br> Youtube: [https://www.youtube.com/watch?v=2SUvWfNJSsM Binary numbers - watch from 2:00 to 6:00]<br> [https://en.wikipedia.org/wiki/Binary_number#Representation Wikipedia on binary numbers] <pre> print("This script converts whole numbers (integers) into binary.") # Ask for user input number = int(input("Ente..."