4,905 Posted Topics

Member Avatar for Atharva_2

What have you tried so far? What you have to keep in mind is that if the number of months you are subtracting is greater than the number of months in the given date you will have to subtract from the given year. For example, if your tuple is (2020, …

Member Avatar for Reverend Jim
0
129
Member Avatar for nevin6969

datetime.date.today() - datetime.timedelta(days=100) gives you the date - 100 days. >>> import datetime >>> datetime.date.today() datetime.date(2020, 4, 24) >>> datetime.date.today() - datetime.timedelta(days=100) datetime.date(2020, 1, 15) You can see the month is `1`.

Member Avatar for amazingadmin
0
230
Member Avatar for tian_1

I know what AI is, and I know what a calculator is. But I'm at a loss as to what an AI calculator is unless it's a voice actuated calculator that recognizes (since this is an English language forum) spoken English. Can you please elaborate?

Member Avatar for rproffitt
0
106
Member Avatar for DeForseti

Welcome to Daniweb. Quick movie reference - is it pronounced ee-gore, or eye-gore? Bonus points if you get the movie.

Member Avatar for Dani
0
29
Member Avatar for Gilbertsilva123

I'd add a print statment to see exactly what is happening. If you are using a debugger with breakpoints then also add one at the start of your `dead` function. collision = isCollision(fighterX[i], fighterY[i], playerX, playerY) if collision: dead() collision = isCollision(fighterX[i], fighterY[i], bulletX, bulletY) if collision: print("shot") def isCollision(fighterX, …

Member Avatar for Reverend Jim
0
216
Member Avatar for Dani

I'm curious. I frequently use a VPN. How will that affect my location?

Member Avatar for Dani
2
850
Member Avatar for Yuanpeng
Member Avatar for Gilbertsilva123

Isn't that pretty much the same thing you asked [here](https://www.daniweb.com/programming/computer-science/threads/522725/shoot-and-kill-pygm)? Why start a new thread?

Member Avatar for Gilbertsilva123
0
157
Member Avatar for Dani

id = LAST_INSERT_ID(id), From what I gather, this expression returns the auto-inceremented value of the field, `id`. And ON DUPLICATE KEY UPDATE says that if the insert fails because of a duplicate record, the existing record is updated.

Member Avatar for Dani
0
1K
Member Avatar for pritaeas
Member Avatar for kristamert
Member Avatar for pythonstudent28

I suggest you start [here](https://opentechschool.github.io/python-beginners/en/simple_drawing.html) with the python turtle module.

Member Avatar for Reverend Jim
0
88
Member Avatar for Kumarvarun0609

I'm assuming that because the OP was too lazy to try this on his own first, he was also too lazy to expand WAP to "Write A Program".

Member Avatar for hussainmujtaba
-3
247
Member Avatar for Reverend Jim

I found this great article on [User Interfaces](https://datagubbe.se/decusab/) that I wanted to share. Two points I wanted to add 1. Just because it's old doesn't mean it's bad. 1. Just because it's new doesn't mean it's better. And can we please all decide that light grey text on a white …

Member Avatar for rproffitt
0
510
Member Avatar for Flashints

- The world is in the grip of a pandemic. - Donald Trump is an idiot. - Japanese giant hornets are now in North America. - Tom Hanks is still pretty awesome. You are now updated.

Member Avatar for Dani
0
74
Member Avatar for huwwaris

Let's examine, step by step, what you have done so far: 1. Posted your homework assignment. I think I see your problem. You haven't actually tried to do it yourself. How about you show us what you have done.

Member Avatar for mapsonyllaer
0
377
Member Avatar for BonniePoss
Member Avatar for Dani
0
62
Member Avatar for ben_35

Some devices offer a setting that allows Windows to automatically assign a drive letter when the device is mounted.

Member Avatar for Reverend Jim
0
245
Member Avatar for DanielKeith
Member Avatar for ayakubu591
Member Avatar for Edoburun
Member Avatar for shoaib_12

Show us what you have so far and where you are stuck. You might want to watch [How to create notepad in vb.net](https://www.youtube.com/watch?v=Bd8uC3wtUSI) first.

Member Avatar for Reverend Jim
0
81
Member Avatar for PSorensen
Member Avatar for davy_yg

You cold also check out [this article](https://thenextweb.com/syndication/2018/11/21/the-difference-between-ai-and-machine-learning-explained/) on the difference between machine learning and AI.

Member Avatar for Reverend Jim
0
517
Member Avatar for Lev_3

I disagree with Dani. I think C++ is a terrible first language for learning the fundamentals of programming and algorithm design. I think Python is much better for that. With C++ you have to be too concerned with the underlying structure of the machine. You shouldn't have to worry about …

Member Avatar for hussainmujtaba
0
930
Member Avatar for Zinavo
Member Avatar for rorock

Welcome to Daniweb. There are a few of us dinosaurs always lurking about. I take it you are posting from Montana?

Member Avatar for dfarquharson
2
327
Member Avatar for Dani
Member Avatar for lightft
3
1K
Member Avatar for Radroad

You need to use the code tool `</>` to insert blocks of code. What you posted is not posted as code and without proper indentation it is meaningless.

Member Avatar for Radroad
0
480
Member Avatar for Edoburun
Member Avatar for JamesCherrill

It's been a few years since I tried it but I was impressed with [Komodo IDE](https://www.activestate.com/products/komodo-ide/python-editor/). It's by [ActiveState](https://www.activestate.com/) and they have versions for all major platforms. They also have their own implementation of Python. Best of all, they recently made Komodo IDE free. I'd start with that one. The …

Member Avatar for Reverend Jim
2
1K
Member Avatar for ThaboTS

1. Why are you calling the multiplication result `sum`? 1. Why are you storing an integer result in a `Double`? 1. Why aren't you reading the user response from the console? 1. Why are you comparing a and b? Use the StrDup method instead of using a loop.

Member Avatar for ThaboTS
0
496
Member Avatar for Laluna

Welcome to Daniweb. I removed the spammy link to the online casino. We don't look kindly on spammers so please avoid posts that are thinly veiled spam.

Member Avatar for Reverend Jim
0
145
Member Avatar for Ovidiu_1
Member Avatar for cqx9

I don't know if this would work but how about creating a textbox and making it invisible? You could use that textbox as your variable. Then you could attach on OnChange handler to it that would trigger whenever it is updated. As for how to trigger an event when it …

Member Avatar for cqx9
0
508
Member Avatar for phirux

Let's have a look at the code. Please include an explanation as to 1. what the code is supposed to do 1. what it actually does If you are getting any error messages please include them (and the line number of the code causing the error).

Member Avatar for phirux
1
331
Member Avatar for esyah
Member Avatar for Usoop
Member Avatar for TIffany_2
Member Avatar for littlepr

You are calculating TotalPay = ((float(hrs) * float(HourlyRate)) + ((float(OvrTimehrs) * float(OvertimeRate) * float(HourlyRate)))) You are using the total hours multiplied by your hourly rate. You want `40 * HourlyRate`. That would give you the answer you expect.

Member Avatar for Reverend Jim
0
510
Member Avatar for Abdullah_13

The example code [here](https://gist.github.com/mathewmariani/91f471422c4ac0b5ee37) should help. If you are still stuck then post your code here and we'll have a look.

Member Avatar for Abdelrhman_2
0
4K
Member Avatar for stellacherry25

It looks like spam to me. The new member has really not told us anything about himself but does provide links flogging his business. If the member had actually told us something about himself I'd be less inclined to classify it as spam.

Member Avatar for Reverend Jim
0
131
Member Avatar for tetrisunblocked
Member Avatar for krogerfans
Member Avatar for medsibouh

I've never user pandas or collections but I noticed that although from collections import counter does not work, from collections import Counter does (upper case c in Counter). Perhaps that will help. I also noticed that the data you posted is not comma delimited,

Member Avatar for Reverend Jim
0
877
Member Avatar for Quinncunx

Or you could use a SortedList and not have to do the sort yourself. Dim mylist As New SortedList mylist.Add("John", 23) mylist.Add("Jim", 14) mylist.Add("Fred", 92) For Each key As String In mylist.Keys Debug.WriteLine(key & ": " & mylist(key)) Next

Member Avatar for randysoft1
0
3K
Member Avatar for ButcherHix

Welcome to Daniweb. What part of Arizona are you from (I've been to Tempe a couple of times).

Member Avatar for Dani
0
81
Member Avatar for Dani
Member Avatar for Gabriel9999

I heard about this thing called Google. You might try that. I find the phrase "where can I download pip for linux" works pretty well.

Member Avatar for Reverend Jim
1
318
Member Avatar for Samuel_33

I was in the process of writing a response and after two sentences I realized I had already put more effort into replying than you did in creating the original post. Please show us what you have and where you are stuck.

Member Avatar for Reverend Jim
0
206

The End.