Difference between revisions of "Casting"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 +
[[Python]]
  
[[Python]]
 
 
  x = str(3)    # x will be '3'
 
  x = str(3)    # x will be '3'
 
  y = int(3)    # y will be 3
 
  y = int(3)    # y will be 3
 
  z = float(3)  # z will be 3.0
 
  z = float(3)  # z will be 3.0
  
 
+
== Related ==
 
[[Variables]]
 
[[Variables]]
  
 +
== See also ==
 +
* {{Python}}
  
{{Python}}
+
[[Category:Python]]

Revision as of 03:32, 3 March 2022

Advertising: