Python Forum
Converting a remainder to int to str
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting a remainder to int to str
#2
Is there a reason you can't use str() like you do for your hours and minutes? You could assign it to a new variable or just use it directly in your print statement.
print(hour_value+":"+min+":"+str(sec_value))
Also, it would be best to avoid using min as a variable name since it is the name of a built-in function in Python.
tester_V likes this post
Reply


Messages In This Thread
Converting a remainder to int to str - by tester_V - Oct-27-2020, 07:13 PM
RE: Converting a remainder to int to str - by GOTO10 - Oct-27-2020, 07:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Could not parse the remainder: '=' from '=' Saurabh 3 14,510 Feb-20-2019, 11:18 AM
Last Post: buran
  remainder operator % noweare 3 2,836 Feb-14-2019, 01:50 AM
Last Post: noweare

Forum Jump:

User Panel Messages

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