text: Q:
  
  Python strings as long number
  
  I have long string and I want to present it as a long num.
  I tried:
  l=[ord (i)for i in str1]
  
  but this is not what I need.
  I need to make it  long number and not numbers as items in the list.
  this line gives me [23,21,45,34,242,32]
  and I want to make it one long Number that I can change it again to the same string.
  any idea?
  
  A:
  
  This is code that I found that works.
  str='sdfsdfsdfdsfsdfcxvvdfvxcvsdcsdcs sdcsdcasd'
  I=int.from_bytes(bytes([ord (i)for i in str]),byteorder='big')
  print(I)
  print(I.to_bytes(len(str),byteorder='big'))
  
  