Python Forum
Writing a code with 3 digit numbers while they cant contain 0 and then sum them
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing a code with 3 digit numbers while they cant contain 0 and then sum them
#2
I tried your code with a = str(a) instead of just str(a) and it worked.
Reply


Messages In This Thread
RE: Writing a code with 3 digit numbers while they cant contain 0 and then sum them - by Mr_W - Jan-13-2019, 11:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python code to calculate mean of an array of numbers using numpy viren 3 299 May-29-2024, 04:49 PM
Last Post: Gribouillis
  [solved] a 4-digit display vr34 2 487 Apr-12-2024, 05:38 PM
Last Post: vr34
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 523 Jan-27-2024, 05:23 PM
Last Post: Winfried
  writing and running code in vscode without saving it akbarza 1 536 Jan-11-2024, 02:59 PM
Last Post: deanhystad
  prefix ID Number with 0,00 make 3 digit. mg24 1 861 Oct-06-2022, 07:20 AM
Last Post: ibreeden
  if a string has a digit - print tester_V 2 2,294 Jan-16-2021, 04:48 AM
Last Post: tester_V
  Help with writing or plan part of code Merlin_1 1 1,933 Aug-24-2020, 03:28 AM
Last Post: Larz60+
  Is this right code for 3 digit pin ? fatjuicypython 1 1,921 Aug-21-2020, 11:15 PM
Last Post: bowlofred
  Writing a basic shift code djwilson0495 2 2,389 Aug-16-2020, 01:52 PM
Last Post: djwilson0495
  a better way of writing code Than999 6 3,561 Jun-13-2020, 08:02 AM
Last Post: pyzyx3qwerty

Forum Jump:

User Panel Messages

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