Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to append at a specific position
Post: RE: How to append at a specific position

(Sep-21-2019, 04:14 AM)perfringo Wrote: If I understand the objective correctly one can use zip and conditional expression: >>> password = 'alpha' >&...
Carson147 General Coding Help 5 3,731 Sep-21-2019, 04:26 AM
    Thread: How to append at a specific position
Post: RE: How to append at a specific position

(Sep-21-2019, 12:57 AM)ichabod801 Wrote: I would use enumerate and then index assignment. Do you mean doing it this way? It did work if each letter is unique, however when there are two same letters...
Carson147 General Coding Help 5 3,731 Sep-21-2019, 01:18 AM
    Thread: How to append at a specific position
Post: How to append at a specific position

This is a little hard to explain but if the code is ran things will start to make sense. Right now when this program is ran it does this, when I enter a letter in the input that is part of line 1 ['...
Carson147 General Coding Help 5 3,731 Sep-21-2019, 12:09 AM
    Thread: Converting Program to OOP
Post: Converting Program to OOP

Hello, I recently created a makeshift 'My Contact' program that is completely text based. I'm wondering if it is possible to turn this code into Object Oriented Programming, and if yes would the code ...
Carson147 General Coding Help 2 3,960 May-13-2019, 03:42 PM
    Thread: Problem with the math.sin(x) function
Post: RE: Problem with the math.sin(x) function

(Feb-21-2019, 05:03 PM)buran Wrote: Did you see my edited post? Yes, it now works as expected, I didn't read the function note in the python library correctly. Nevertheless thanks very much for the ...
Carson147 General Coding Help 4 2,941 Feb-21-2019, 05:12 PM
    Thread: Problem with the math.sin(x) function
Post: RE: Problem with the math.sin(x) function

(Feb-21-2019, 04:42 PM)buran Wrote: (Feb-21-2019, 04:36 PM)Carson147 Wrote: However when I tested some values they come close but doesn't match my phone's calculator, I'm not sure what went wrong....
Carson147 General Coding Help 4 2,941 Feb-21-2019, 04:50 PM
    Thread: Problem with the math.sin(x) function
Post: Problem with the math.sin(x) function

I was trying to make a simple sine calculator using degrees. However when I tested some values they come close but doesn't match my phone's calculator, I'm not sure what went wrong. Here's my code: ...
Carson147 General Coding Help 4 2,941 Feb-21-2019, 04:36 PM

User Panel Messages

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