Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Palindrome.strip pirts.emordnilaP
Post: RE: Palindrome.strip pirts.emordnilaP
(Oct-07-2017, 09:27 PM)Larz60+ Wrote: I always use regular expression
import re
remjunk = re.compile("[^\w']")
newstr = remjunk.sub(string)maybe you can use this as well as it only takes a simple g... |
|
RodNintendeaux |
Homework |
4 |
3,860 |
Oct-08-2017, 02:30 AM |
|
|
Thread: Palindrome.strip pirts.emordnilaP
Post: RE: Palindrome.strip pirts.emordnilaP
Well, then go with it I shall. I must ask this then, should I strip first, then flip? Logically this makes sense, but putting it into play I am getting output with a : no matter which logic I use.
My... |
|
RodNintendeaux |
Homework |
4 |
3,860 |
Oct-07-2017, 07:29 PM |
|
|
Thread: Palindrome.strip pirts.emordnilaP
Post: Palindrome.strip pirts.emordnilaP
I have a homework assignment that wants me to get a user input string, reverse it, then remove all punctuation. After that, I must compare original string to reversed string and output if the initial ... |
|
RodNintendeaux |
Homework |
4 |
3,860 |
Oct-07-2017, 07:12 PM |
|
|
Thread: While Loop; Can Else Point Back To Initial Input Command?
Post: RE: While Loop; Can Else Point Back To Initial Inp...
Wow, the day that I can program out of boredom like that to help others... I can't wait. Thank you, it really helps me seeing different approaches to the same problem. I really do appreciate all of th... |
|
RodNintendeaux |
Homework |
9 |
6,271 |
Oct-04-2017, 03:21 AM |
|
|
Thread: While Loop; Can Else Point Back To Initial Input Command?
Post: RE: While Loop; Can Else Point Back To Initial Inp...
(Sep-17-2017, 06:33 PM)Krookroo Wrote: Nice :)
Just add a little bit, here's how I would have done it. The idea is to store the data we use in lists so that we can very easily tweak the algorithm fo... |
|
RodNintendeaux |
Homework |
9 |
6,271 |
Sep-30-2017, 06:58 PM |
|
|
Thread: While Loop; Can Else Point Back To Initial Input Command?
Post: RE: While Loop; Can Else Point Back To Initial Inp...
@Krookroo You are awesome. I found an example in the book on the last chapter we covered that touched on the integer division opeartor (//) and a whole whopping two sentences on the Modulos Operator... |
|
RodNintendeaux |
Homework |
9 |
6,271 |
Sep-17-2017, 05:21 AM |
|
|
Thread: While Loop; Can Else Point Back To Initial Input Command?
Post: RE: While Loop; Can Else Point Back To Initial Inp...
Sorry everyone for the delay, I am only now returning to this assignment. Thank you all for your input. I will see what I can do.
[quote='Krookroo' pid='25313' dateline='1505520346']
There is the % o... |
|
RodNintendeaux |
Homework |
9 |
6,271 |
Sep-17-2017, 03:24 AM |
|
|
Thread: While Loop; Can Else Point Back To Initial Input Command?
Post: While Loop; Can Else Point Back To Initial Input C...
Guys and gals, I have lost my ever-loving mind. I was given a homework assignment (Intro to Python) and I have mostly figured this out, but I cannot get one thing right: When cents < 0, point back ... |
|
RodNintendeaux |
Homework |
9 |
6,271 |
Sep-15-2017, 05:53 AM |
|
|
Thread: Repeating a block of code
Post: RE: Repeating a block of code
Bass basically answered this already, but I wanted to chime in and let you know what I did to my son a few days ago (I try to show my kids everything I learn in some fun way; perhaps spark a creative ... |
|
RodNintendeaux |
General Coding Help |
8 |
5,674 |
Jun-12-2017, 12:01 AM |
|
|
Thread: len(bridge_knight) = 94 characters...
Post: RE: len(bridge_knight) = 94 characters...
(Jun-11-2017, 07:31 AM)buran Wrote: Plain [53] just gets the one item after index 53, which is the space.
This is where my logic failed me. I was reading (on two sites, and one book) that this inclu... |
|
RodNintendeaux |
General Coding Help |
5 |
3,852 |
Jun-11-2017, 11:35 PM |
|
|
Thread: len(bridge_knight) = 94 characters...
Post: RE: len(bridge_knight) = 94 characters...
(Jun-10-2017, 09:12 PM)ichabod801 Wrote: That's while text[y] is not in text[x:y]. The first is looking after the y, the second is looking up to the y.
Output:>>> bridge_knight[53:93]
' who... |
|
RodNintendeaux |
General Coding Help |
5 |
3,852 |
Jun-11-2017, 01:17 AM |
|
|
Thread: len(bridge_knight) = 94 characters...
Post: len(bridge_knight) = 94 characters...
bridge_knight = "I seek the bravest and the finest knights in the land who will join me in my court at Camelot."When I run len(bridge_knight) the output is 94. So this identifies 0-93 totaling 94 char... |
|
RodNintendeaux |
General Coding Help |
5 |
3,852 |
Jun-10-2017, 08:58 PM |
|
|
Thread: "my_value".index() inquiry...
Post: RE: "my_value".index() inquiry...
(Jun-10-2017, 08:17 PM)snippsat Wrote: (Jun-10-2017, 07:45 PM)RodNintendeaux Wrote: So I must use multiple lines? I can't use one index() command to pull all three. Okie-dokie.You have iterate ove... |
|
RodNintendeaux |
General Coding Help |
6 |
5,340 |
Jun-10-2017, 08:32 PM |
|
|
Thread: "my_value".index() inquiry...
Post: RE: "my_value".index() inquiry...
So I must use multiple lines? I can't use one index() command to pull all three. Okie-dokie.
Thank you @ichabod801, I truly appreciate your time and assist on this.
-Rod |
|
RodNintendeaux |
General Coding Help |
6 |
5,340 |
Jun-10-2017, 07:45 PM |
|
|
Thread: "my_value".index() inquiry...
Post: "my_value".index() inquiry...
So I am learning this .index() thingy and know how to use it for a single character in a string, but I am running into errors trying to attempt to index multiple characters that match. For instance, I... |
|
RodNintendeaux |
General Coding Help |
6 |
5,340 |
Jun-10-2017, 06:48 PM |
|
|
Thread: Learning Python with pip, cmder and/or virtualenv...
Post: RE: Learning Python with pip, cmder and/or virtual...
(Jun-05-2017, 12:04 AM)snippsat Wrote: Quote:This is my output from cmder when I type python:
Yes and now you type python commands,you have typed Python commands from command line.
>>> impo... |
|
RodNintendeaux |
Web Scraping & Web Development |
8 |
8,266 |
Jun-05-2017, 12:07 AM |
|
|
Thread: Learning Python with pip, cmder and/or virtualenv...
Post: RE: Learning Python with pip, cmder and/or virtual...
To my knowledge, I only have 64-bit 3.6.1:
This is my output from cmder when I type python:
Output:λ python
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32
T... |
|
RodNintendeaux |
Web Scraping & Web Development |
8 |
8,266 |
Jun-04-2017, 11:47 PM |
|
|
Thread: Learning Python with pip, cmder and/or virtualenv...
Post: RE: Learning Python with pip, cmder and/or virtual...
(Jun-03-2017, 05:47 AM)snippsat Wrote: Quote:Learning Python with pip, cmder and/or virtualenv...
I have tutorials about this part-1, part-2
Then help with this, please:
c:\my_env
(my_env) λ import... |
|
RodNintendeaux |
Web Scraping & Web Development |
8 |
8,266 |
Jun-04-2017, 11:16 PM |
|
|
Thread: Learning Python with pip, cmder and/or virtualenv...
Post: Learning Python with pip, cmder and/or virtualenv....
I hear a lot of people say, "I am a quick study!" And that is great, Dr. Strange is better for it, but me, I am not one. I could, if pushed, be a bit quick, but in my experience, the more I learn by s... |
|
RodNintendeaux |
Web Scraping & Web Development |
8 |
8,266 |
Jun-02-2017, 10:46 PM |
|
|
Thread: [split] Screen recording software
Post: RE: i need help with an error
(Jun-01-2017, 07:28 AM)metulburr Wrote: 30 to me is a rip off. You can use ffmpeg for free to get the same results. And if your not tech savy there are tons of free screen casting software that cont... |
|
RodNintendeaux |
Bar |
8 |
7,707 |
Jun-02-2017, 03:58 AM |