daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dynamic_array = [ ]
  2. hexdec = input("Enter the hex number to binary ");
  3. strArray = [hexdec[idx:idx+2]  for idx in range(len(hexdec)) if idx%2 == 0]
  4. dynamic_array = strArray
  5. print(dynamic_array[0] + " IAM" )  
  6. print(dynamic_array[1] + " NOA" )
  7. print(dynamic_array[2] + " FCI" )
  8.    
  9. 01 IAM
  10. 02 NOA
  11. 03 FCI
  12.    
  13. 00000001 IAM
  14. 00000010 NOA
  15. 00000011 FCI
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top