Click here to Skip to main content
15,868,159 members
Home / Discussions / - Uncategorised posts -
   

- Uncategorised posts -

Please don't post in this forum. If you've posted in this forum it's because you've selected the first forum on the list without thinking through which forum would be best. All messages in this forum are periodically removed.

 
Questioni have tried the code above . it works fine. but it only shows the breakdown of the costs. i want the label to show the total cost as well. what more should i add to the code?? please help</pre> Pin
Rikansha kumar10-Sep-20 22:09
Rikansha kumar10-Sep-20 22:09 
Rant[REPOST]: i have tried the code above . it works fine. but it only shows the breakdown of the costs. i want the label to show the total cost as well. what more should i add to the code?? please help</pre> Pin
Richard Deeming10-Sep-20 22:22
mveRichard Deeming10-Sep-20 22:22 
QuestionCopy message text and user name only from Message Board with 100s of pages of 10 messages each? Pin
Member 1487569028-Jun-20 17:54
Member 1487569028-Jun-20 17:54 
AnswerRe: Copy message text and user name only from Message Board with 100s of pages of 10 messages each? Pin
Richard MacCutchan28-Jun-20 21:42
mveRichard MacCutchan28-Jun-20 21:42 
QuestionWhich one would be faster in Python i = i + 1 or i += 1 ? Pin
Member 1484242524-May-20 12:03
Member 1484242524-May-20 12:03 
AnswerRe: Which one would be faster in Python i = i + 1 or i += 1 ? Pin
kalberts24-May-20 17:33
kalberts24-May-20 17:33 
GeneralRe: Which one would be faster in Python i = i + 1 or i += 1 ? Pin
Member 1484242524-May-20 21:16
Member 1484242524-May-20 21:16 
GeneralRe: Which one would be faster in Python i = i + 1 or i += 1 ? Pin
kalberts24-May-20 23:59
kalberts24-May-20 23:59 
I do not code in Python on a regular basis, and if I do, I have to google a lot...
So I googled "python timing", and the first hit, at performance - Measure time elapsed in Python - Stack Overflow[^] discusses a few alternatives. It looks like the best solution would be something like
from timeit import default_timer as timer

start = timer()
# ...
end = timer()
print(end - start) # Time in seconds, e.g. 5.38091952400282
Obviously, the "# ..." indicates where you put you one-million iterations loop.
GeneralRe: Which one would be faster in Python i = i + 1 or i += 1 ? Pin
Member 1484242525-May-20 0:01
Member 1484242525-May-20 0:01 
GeneralRe: Which one would be faster in Python i = i + 1 or i += 1 ? Pin
Superfine Construction4-Aug-20 19:39
Superfine Construction4-Aug-20 19:39 
QuestionMapping Drives... Pin
Michael Breeden25-Apr-20 8:37
Michael Breeden25-Apr-20 8:37 
AnswerRe: Mapping Drives... Pin
Richard Deeming27-Apr-20 0:17
mveRichard Deeming27-Apr-20 0:17 
GeneralRe: Mapping Drives... Pin
Michael Breeden27-Apr-20 1:09
Michael Breeden27-Apr-20 1:09 
QuestionRename EML files With Message Subject Line Pin
Member 1469381418-Dec-19 5:15
Member 1469381418-Dec-19 5:15 
AnswerRe: Rename EML files With Message Subject Line Pin
Richard Deeming18-Dec-19 6:20
mveRichard Deeming18-Dec-19 6:20 
GeneralRe: Rename EML files With Message Subject Line Pin
Member 1469381418-Dec-19 10:01
Member 1469381418-Dec-19 10:01 
GeneralRe: Rename EML files With Message Subject Line Pin
Richard Deeming19-Dec-19 1:18
mveRichard Deeming19-Dec-19 1:18 
QuestionCan a recent college graduate get a software job without an internship? Pin
tara lara17-Dec-19 13:03
tara lara17-Dec-19 13:03 
AnswerRe: Can a recent college graduate get a software job without an internship? Pin
Maciej Los17-Dec-19 22:21
mveMaciej Los17-Dec-19 22:21 
GeneralRe: Can a recent college graduate get a software job without an internship? Pin
tara lara18-Dec-19 7:32
tara lara18-Dec-19 7:32 
AnswerRe: Can a recent college graduate get a software job without an internship? Pin
ZurdoDev18-Dec-19 1:33
professionalZurdoDev18-Dec-19 1:33 
GeneralRe: Can a recent college graduate get a software job without an internship? Pin
tara lara18-Dec-19 7:32
tara lara18-Dec-19 7:32 
GeneralRe: Can a recent college graduate get a software job without an internship? Pin
ZurdoDev18-Dec-19 14:34
professionalZurdoDev18-Dec-19 14:34 
GeneralRe: Can a recent college graduate get a software job without an internship? Pin
tara lara18-Dec-19 14:46
tara lara18-Dec-19 14:46 
AnswerRe: Can a recent college graduate get a software job without an internship? Pin
Nasgarka8-Nov-20 7:52
Nasgarka8-Nov-20 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.