blob: 5adaa8487b65cfb6c70a466ee717971bdd19851d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)|}
|