Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change variable type python

x = 12
str(x) #it's a String now 

number = "24"
int(number) #it's an integer now
Comment

PREVIOUS NEXT
Code Example
Python :: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 43350 
Python :: remove a file or dir in linux or mac or ubuntu 
Python :: python reverse list complexity 
Python :: Conversion of number string to float in django 
Python :: scanner class in python 
Python :: adding static file and its usage in Django 
Python :: pandas series quantile 
Python :: pillow rgb to grayscale 
Python :: how to return total elements in database django 
Python :: how to read xlsx file in jupyter notebook 
Python :: np.array to list 
Python :: random sample with weights python 
Python :: python bool to string 
Python :: create or update django models 
Python :: transpose array python 
Python :: get last element of a list python 
Python :: sklearn cross_val_score scoring metric 
Python :: write a list into csv python 
Python :: get a slice of string in python 
Python :: pandas df make set index column 
Python :: pandas read from txt separtion 
Python :: Handling Python DateTime timezone 
Python :: python keyboardinterrupt 
Python :: hide code in jupyter notebook 
Python :: python remove string from string 
Python :: python program to convert unit 
Python :: python cheat sheet 
Python :: how to find unique values in a column in pandas 
Python :: duplicate data in python 
Python :: lasso regression implementation python 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =