Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python elementary problem
#1
In a given text you need to sum the numbers. Only separated numbers should be counted. If a number is part of a word it shouldn't be counted.

this is the problem. I'm a beginner programmer in terms of solving python logical problems. I've tried to use .isdigit but then I can't find if the numbers is separated or not. Now what must I do to solve the problem?

oh P.S: The text consists from numbers, spaces and english letters. No other signs.
Reply


Messages In This Thread
Python elementary problem - by saratha - Nov-04-2020, 04:22 PM
RE: Python elementary problem - by Axel_Erfurt - Nov-04-2020, 04:24 PM
RE: Python elementary problem - by saratha - Nov-04-2020, 05:27 PM
RE: Python elementary problem - by deanhystad - Nov-04-2020, 05:07 PM
RE: Python elementary problem - by jefsummers - Nov-04-2020, 07:03 PM
RE: Python elementary problem - by Axel_Erfurt - Nov-04-2020, 07:28 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020