What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-28 19:27:17
python convert binary / hexadecimal / decimal to binary / hexadecimal / decimal
## First install the module coden with pip in cmd # pip install coden ## import module import coden ## Convert # Binary to Decimal ans = coden.bin_to_int(number) # Binary to Hexadecimal ans = coden.bin_to_hex(number) # Hexadecimal to Decimal ans = cod... Add solution -
Python 2021-10-23 10:54:10
how to write user input to a file in python
#Print User Input to A File x = input("Enter blah : ") y = open('C:\Users\USERNAME\Documents\Doc1.txt', 'w') y.write(x) #Convert text to binary and then write to file x = input("Enter blah : ") y = open('C:\Users\USERNAME\Documents\Do... Add solution -
Shell/Bash 2021-10-21 12:37:06
bash chmod
# How permissions/changing permissions works in linux. Permissions are # generally listed in a format like rwxrw-r--, where r, w, x, and - # stand for read, write, execute, and no permission respectively. There # are basically three groups of rwx permis... Add solution -
Shell/Bash 2021-10-14 23:24:12
chmod command
# How permissions/changing permissions works in linux. Permissions are # generally listed in a format like rwxrw-r--, where r, w, x, and - # stand for read, write, execute, and no permission respectively. There # are basically three groups of rwx permis... Add solution -
C++ 2021-10-10 01:54:04
convert decimal to binary in c++
// C++ program to convert a decimal // number to binary number #include <iostream> using namespace std; // function to convert decimal to binary void decToBinary(int n) { // array to store binary number int binaryNum[32]; ... Add solution -
C++ 2021-10-09 02:25:09
how to do decimal to binary converdsion in c++
// C++ program to convert a decimal // number to binary number #include <iostream> using namespace std; // function to convert decimal to binary void decToBinary(int n) { // array to store binary number int binaryNum[32]; ... Add solution -
Python 2021-10-05 20:53:04
how to convert decimal to binary python
# Python program to convert decimal to binary # Function to convert Decimal number # to Binary number def decimalToBinary(n): return bin(n).replace("0b", "") # Driver code if __name__ == '__main__': print... Add solution