hello please do not derail this blessed thread
http://steamcommunity.com/id/krsa-
Account Details | |
---|---|
SteamID64 | 76561198117722422 |
SteamID3 | [U:1:157456694] |
SteamID32 | STEAM_0:0:78728347 |
Country | United States |
Signed Up | September 5, 2016 |
Last Posted | December 28, 2020 at 8:02 PM |
Posts | 3017 (0.9 per day) |
Game Settings | |
---|---|
In-game Sensitivity | |
Windows Sensitivity | |
Raw Input | |
DPI |
|
Resolution |
|
Refresh Rate |
Hardware Peripherals | |
---|---|
Mouse | |
Keyboard | |
Mousepad | |
Headphones | |
Monitor |
Lense
Since this is a very beginner class I’m assuming he doesn’t know about libraries and Regex yet
gemmYou also assume perfect grammar which is kind of a shakey thing to do
Yeah I don’t have any way to verify my code and I’m assuming a couple of things for the sake of simplicity, I don’t know what he has learned or what exactly his teacher expects him to do so I’m just guessing
JarateKingepiUnless I'm mistaken, Vulcan's current code (when he took out " the" which should never have been there) should be fine for that, as long as capitalization is consistent and stuff like "THE QUICK BROWN FOX" never appears as a line in the text.>>> vulcan_count("Theodore reads his thesaurus at the theater") 4
I think splitting the string or using regex is the better part of valor here. Making a list of this kind of rule can get out of hand fast.
I used “ the” because I was thinking of something like this “ djdjfkkdk the”
str = “shakesphere mumbo jumbo”
number = str.count (“The “)
str = str.lower ()
return str.count (“ the “) + number
epi try this out?
epiVulcan, your code will miss "the" at the beginning or end of the string.>>> "the quick brown fox jumps over the lazy dog".count(" the ") 1
Edited thank you
didn’t think about a possible “the” inside of a word, I’m assuming the professor means “the” as a word correct?
pretty sure my code above works and is the most efficient way you can do it
Codingbat has a lot of good practice problems http://codingbat.com/python/String-2
Take the entire string and make it lowercase with the str.lower then you can use a for loop to go through the entire string searching for the word “the” and then adding 1 to counter every time it does
or you could use str.count
Something like this
check below
Surfing/jump maps/bhopping improves player control and movement. Mge and dm are both good but I have a more enjoyable experience playing scout dm
You are not mid open
weaboo mlp furry, calls hacks after a couple of airshots but despite this refuses to acknowledge that his friend is cheating
memoryok i quit goodbye all :D
selling my items if any1 is interested
memoryif anyone needs someone to sub/main for the rest of the season hmu, i’ll play whatever class
?
tojonazarahttps://clips.twitch.tv/JazzyMoralSmoothieNomNomi had 48 health this game fucking SUCKS
The gunboats rocket jump resistance only works if you don’t do damage, since Milan absorbed ur rocket the gunboats didn’t work lol