Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

convert_text_to_hexadecimal_viva.py in python

# convert text string to hexa decimal code
str = 'twee'.encode('utf-8')
hex = str.hex()

# convert hexadecimal code to string
str1 = bytes.fromhex(hex).decode('utf-8')

print(hex)
print(str1)
Comment

PREVIOUS NEXT
Code Example
Python :: reverse string in python 
Python :: python set a specific datetime 
Python :: random list python 
Python :: how to increment date by one in python 
Python :: python df round values 
Python :: how to write a numpy array to a file in python 
Python :: add something to list python 
Python :: python print int in string with zero padding 
Python :: python transform two columns to a list combine 
Python :: python get lan ip 
Python :: find allurl in text python 
Python :: pandas replace space with underscore in column names 
Python :: tkinter events 
Python :: python prime check 
Python :: TabError: inconsistent use of tabs and spaces in indentation 
Python :: get classification report sklearn 
Python :: python get random character from string 
Python :: pandas replace zero with blank 
Python :: pip install specific version 
Python :: psyche asteroid 
Python :: django form widget 
Python :: pandas strips spaces in dataframe 
Python :: how to run for loop in python 
Python :: extract filename from path in python 
Python :: python unit testing machine learning 
Python :: json python no whitespace 
Python :: how to remove in null values in pandas 
Python :: django making a custom 403 page 
Python :: pandas merge dataframes by column 
Python :: python assers 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =