Mar-05-2021, 04:12 PM
How will you convert a string to a number in python?
convert a string to a number
|
Mar-05-2021, 04:12 PM
How will you convert a string to a number in python?
You need to take a tutorial if you don't know the answer to such an elementary item.
I'd suggest one of: https://runestone.academy/runestone/book...index.html or https://www.python-course.eu/python3_course.php answer: value = int(str)
Mar-06-2021, 02:45 AM
what do you mean by "number"? a whole number like 25 or a fractional number like 3.14159? how will you be using this number?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Apr-07-2021, 09:09 AM
Apr-07-2021, 09:10 AM
Apr-07-2021, 12:03 PM
Integer are whole numbers.
https://docs.python.org/3/library/functions.html#int Quote:class int([x])
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Apr-10-2021, 12:09 AM
(Apr-07-2021, 09:10 AM)Naheed Wrote:(Mar-06-2021, 02:45 AM)Skaperen Wrote: what do you mean by "number"? a whole number like 25 or a fractional number like 3.14159? how will you be using this number? how are you expressing this whole number? if in text, what language(s)? if with digits, in what base? "17"? "23"? "10111"? "XXIII"? "vingt-trois"? "tjue-tre"? "twenty-three"?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Apr-26-2021, 08:08 AM
Thanks to all of you for your help.
I have found the solution. |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
system-wide unique incrementing string or number | Skaperen | 11 | 6,197 |
Jul-08-2020, 08:10 PM Last Post: Yoriz |