parsing_data/quickref.tex
author Amit Sethi
Tue, 09 Nov 2010 01:28:00 +0530
changeset 406 a534e9e79599
parent 331 e3136f576acb
permissions -rw-r--r--
Completed basic data type based on review and improved on slides

Splitting a string on whitespace:\\
{\ex \lstinline|    str_var.split()|}

Splitting a string using a delimiter. Ex: ";" :\\
{\ex \lstinline|    str_var.split(";")|}

Stripping the whitespace around a string:\\
{\ex \lstinline|    str_var.strip()|}

Converting a string or float to int:\\
{\ex \lstinline|    int(var_name)|}

Converting a string or int into float:\\
{\ex \lstinline|    float(var_name)|}