Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Search List
Post: RE: Search List

(Jan-19-2018, 08:55 PM)wavic Wrote: The first issue with your code is that you compare a string against an integer. The input() is always a string so you have to convert it to an integer. Checking ...
Thethispointer General Coding Help 6 3,915 Jan-19-2018, 10:02 PM
    Thread: Search List
Post: RE: Search List

(Jan-19-2018, 08:49 PM)j.crater Wrote: The thing is that x = input() makes x variable of type string. So when you compare x == y, you are comparing strings and integers, which will always return fal...
Thethispointer General Coding Help 6 3,915 Jan-19-2018, 08:51 PM
    Thread: Search List
Post: Search List

Hello Programmers, I am working on learning python. This isn't for school, so we don't need to be extremely rigid, I am more interested in learning how to utilize Python as opposed to Windows/DOS bat...
Thethispointer General Coding Help 6 3,915 Jan-19-2018, 08:25 PM
    Thread: Product of maximum in first array and minimum in second
Post: RE: Product of maximum in first array and minimum ...

(Jan-19-2018, 04:44 PM)j.crater Wrote: No problem, we are glad to help! =) Beside posting when you hit an obstacle, feel free to also post in Completed Scripts/Snippets subforum, if you would like t...
Thethispointer General Coding Help 9 5,209 Jan-19-2018, 07:38 PM
    Thread: Product of maximum in first array and minimum in second
Post: RE: Product of maximum in first array and minimum ...

(Jan-19-2018, 07:08 AM)j.crater Wrote: Code looks much nicer/shorter. Except the task ultimately requires a product, not sum of those elements, if I understood right =) Yes indeed you are correct! I...
Thethispointer General Coding Help 9 5,209 Jan-19-2018, 04:29 PM
    Thread: Product of maximum in first array and minimum in second
Post: RE: Product of maximum in first array and minimum ...

Awesome, awesome, awesome! **dance** Thank you! Here is the functional code, now let's add min() and max()... or maybe tomorrow morning as it's getting pretty late here in the Midwest. #Given two ...
Thethispointer General Coding Help 9 5,209 Jan-19-2018, 06:53 AM
    Thread: Product of maximum in first array and minimum in second
Post: Product of maximum in first array and minimum in s...

So I am practicing the following Quote:Given two arrays of size N1 and N2 respectively, the task is to calculate the product of max element of first array and min element of second array. https://pr...
Thethispointer General Coding Help 9 5,209 Jan-19-2018, 05:32 AM

User Panel Messages

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