How and why does this even work?

+1 Eric Persson · December 18, 2015

>>> str(-3.14)

'-3.14'

Isn't a string supposed to be required to be in "citations"?

Post a Reply

Replies

Oldest  Newest  Rating
0 Hasib Ullah · December 18, 2015
str(-3.14) means You are converting a number into a String.it doesn't print out as a Number,it prints out as a string
  • 1

Python

107,335 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator