workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
Nice - I am so glad they fixed that. I’m going to have to retire that gotcha
2019-02-25T14:49:09.638900
Clemmie
pythondev_help_Clemmie_2019-02-25T14:49:09.638900
1,551,106,149.6389
10,521
pythondev
help
So for my next task. I'm writing a panagram tester. And while it works when i run the module it's failing a lot of the test conditions and i can't identify why
2019-02-25T14:52:08.639900
Demetrice
pythondev_help_Demetrice_2019-02-25T14:52:08.639900
1,551,106,328.6399
10,522
pythondev
help
Here It is
2019-02-25T14:52:14.640200
Demetrice
pythondev_help_Demetrice_2019-02-25T14:52:14.640200
1,551,106,334.6402
10,523
pythondev
help
def is_pangram(sentence): alphabet = '' alph = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" sentence = input("What is the string we would like to test?") for i in sentence: if i in alph: alphabet += i else: pass alphabet = alphabet.lower() if "abcdefghijklmnopqrstuvwxyz" in alphabet: return True else: return False print(is_pangram(sentence = ''))
2019-02-25T14:52:18.640400
Demetrice
pythondev_help_Demetrice_2019-02-25T14:52:18.640400
1,551,106,338.6404
10,524
pythondev
help
So i'm not sure if it's similar to earlier. I tried just calling sentence as is, in my print statement. and then i tried to just use a default argument instead in the def statement but that also didn't work
2019-02-25T14:53:26.641700
Demetrice
pythondev_help_Demetrice_2019-02-25T14:53:26.641700
1,551,106,406.6417
10,525
pythondev
help
Update -- I defined sentence outside of the function and that helped out. But i'm still failing 4/10 cases
2019-02-25T14:54:45.642300
Demetrice
pythondev_help_Demetrice_2019-02-25T14:54:45.642300
1,551,106,485.6423
10,526
pythondev
help
Please use the snippet feature, or backticks, when sharing code. You can do so by clicking on the :heavy_plus_sign: on the left of the input box for a snippet. For more information on snippets click <https://get.slack.help/hc/en-us/articles/204145658-Create-a-snippet|here>. For more information on inline code formatting with backticks click <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#inline-code|here>.
2019-02-25T14:55:09.642600
Leana
pythondev_help_Leana_2019-02-25T14:55:09.642600
1,551,106,509.6426
10,527
pythondev
help
Very cool. Thank You
2019-02-25T14:56:12.643400
Demetrice
pythondev_help_Demetrice_2019-02-25T14:56:12.643400
1,551,106,572.6434
10,528
pythondev
help
You seem to be expecting that the `alphabet` string will remove duplicates and sort itself automatically, or else you're misunderstanding how `in` works.
2019-02-25T14:56:48.644300
Sasha
pythondev_help_Sasha_2019-02-25T14:56:48.644300
1,551,106,608.6443
10,529
pythondev
help
Good point. I know how to fix the duplicates
2019-02-25T14:57:41.645100
Demetrice
pythondev_help_Demetrice_2019-02-25T14:57:41.645100
1,551,106,661.6451
10,530
pythondev
help
I thought by using "in" the order wouldn't matter
2019-02-25T14:57:59.645700
Demetrice
pythondev_help_Demetrice_2019-02-25T14:57:59.645700
1,551,106,679.6457
10,531
pythondev
help
Do i need to make a list of each alphabet character? That would work, right?
2019-02-25T14:58:12.646100
Demetrice
pythondev_help_Demetrice_2019-02-25T14:58:12.646100
1,551,106,692.6461
10,532
pythondev
help
For strings, `in` does a substring match, like finding a word in a sentence.
2019-02-25T14:58:46.646500
Sasha
pythondev_help_Sasha_2019-02-25T14:58:46.646500
1,551,106,726.6465
10,533
pythondev
help
Personally I'd be thinking a `set` would be the easiest way to go.
2019-02-25T14:59:29.647100
Sasha
pythondev_help_Sasha_2019-02-25T14:59:29.647100
1,551,106,769.6471
10,534
pythondev
help
So will this work? Although i imagine there's probably a much better way
2019-02-25T15:01:06.647300
Demetrice
pythondev_help_Demetrice_2019-02-25T15:01:06.647300
1,551,106,866.6473
10,535
pythondev
help
Afraid not... `in` just doesn't do that. You'd need to loop over each letter and check it one at a time.
2019-02-25T15:01:44.648100
Sasha
pythondev_help_Sasha_2019-02-25T15:01:44.648100
1,551,106,904.6481
10,536
pythondev
help
So if i'm looping then i can have it as one big string again, right?
2019-02-25T15:02:20.648700
Demetrice
pythondev_help_Demetrice_2019-02-25T15:02:20.648700
1,551,106,940.6487
10,537
pythondev
help
Yes
2019-02-25T15:02:35.648900
Sasha
pythondev_help_Sasha_2019-02-25T15:02:35.648900
1,551,106,955.6489
10,538
pythondev
help
also you don’t want to put the `= ''` in your method call. that is calling is_pangram with the empty string every time
2019-02-25T15:03:01.649300
Clemmie
pythondev_help_Clemmie_2019-02-25T15:03:01.649300
1,551,106,981.6493
10,539
pythondev
help
just call `is_pangram(sentence)`
2019-02-25T15:03:22.649700
Clemmie
pythondev_help_Clemmie_2019-02-25T15:03:22.649700
1,551,107,002.6497
10,540
pythondev
help
:taco: <@Sasha>
2019-02-25T15:04:06.650000
Clemmie
pythondev_help_Clemmie_2019-02-25T15:04:06.650000
1,551,107,046.65
10,541
pythondev
help
Would this work?
2019-02-25T15:08:02.650100
Demetrice
pythondev_help_Demetrice_2019-02-25T15:08:02.650100
1,551,107,282.6501
10,542
pythondev
help
Also, doing it this way there's no longer a reason to be wary of duplicates in alphabet, right?
2019-02-25T15:08:24.650900
Demetrice
pythondev_help_Demetrice_2019-02-25T15:08:24.650900
1,551,107,304.6509
10,543
pythondev
help
I don't think string subtraction is a thing, unfortunately, in your `test -= i` line.
2019-02-25T15:09:40.651800
Sasha
pythondev_help_Sasha_2019-02-25T15:09:40.651800
1,551,107,380.6518
10,544
pythondev
help
Oh. Man
2019-02-25T15:09:56.652300
Demetrice
pythondev_help_Demetrice_2019-02-25T15:09:56.652300
1,551,107,396.6523
10,545
pythondev
help
Also i'm getting a syntax error for 'is not in'. How do we say that in python?
2019-02-25T15:10:17.653200
Demetrice
pythondev_help_Demetrice_2019-02-25T15:10:17.653200
1,551,107,417.6532
10,546
pythondev
help
just "not in"
2019-02-25T15:10:28.653800
Carlo
pythondev_help_Carlo_2019-02-25T15:10:28.653800
1,551,107,428.6538
10,547
pythondev
help
^
2019-02-25T15:10:34.654100
Carmen
pythondev_help_Carmen_2019-02-25T15:10:34.654100
1,551,107,434.6541
10,548
pythondev
help
"is" is an identity test
2019-02-25T15:11:20.654900
Carlo
pythondev_help_Carlo_2019-02-25T15:11:20.654900
1,551,107,480.6549
10,549
pythondev
help
So i rewrote it. But i think the second if statement is redundant, and doesn't solve the issue of things being out of order
2019-02-25T15:15:36.656900
Demetrice
pythondev_help_Demetrice_2019-02-25T15:15:36.656900
1,551,107,736.6569
10,550
pythondev
help
<@Demetrice> you don’t need to do all of the work you are doing (perhaps) if a pangram is defined as having at least every letter from the alphabet, but can have duplicates (an maybe even other stuff) you don’t need to create your alphabet. Conceptually all you need is to see if all of your test characters (the real alphabet) exist in your sentence. If they do - return true, if you can’t find one - return false
2019-02-25T15:16:25.658100
Clemmie
pythondev_help_Clemmie_2019-02-25T15:16:25.658100
1,551,107,785.6581
10,551
pythondev
help
think about that a little and see if it changes your algorithm
2019-02-25T15:16:40.658600
Clemmie
pythondev_help_Clemmie_2019-02-25T15:16:40.658600
1,551,107,800.6586
10,552
pythondev
help
Then we can talk about more performant, pythonic ways to do it, if you want
2019-02-25T15:16:57.659100
Clemmie
pythondev_help_Clemmie_2019-02-25T15:16:57.659100
1,551,107,817.6591
10,553
pythondev
help
This message was deleted.
2019-02-25T15:27:50.659400
Alejandrina
pythondev_help_Alejandrina_2019-02-25T15:27:50.659400
1,551,108,470.6594
10,554
pythondev
help
What is the recommened choices for configuring the python interpreter for pycharm. venv or conda for envs and for the system interpreter
2019-02-25T15:29:26.662000
Clayton
pythondev_help_Clayton_2019-02-25T15:29:26.662000
1,551,108,566.662
10,555
pythondev
help
you forgot `()` after your call to `lower` so `for i not in sentence` is trying to run on the build-in method `lower` not the string returned from a call to `lower()`
2019-02-25T15:29:29.662100
Clemmie
pythondev_help_Clemmie_2019-02-25T15:29:29.662100
1,551,108,569.6621
10,556
pythondev
help
That looks _much_ better
2019-02-25T15:29:48.662500
Lillia
pythondev_help_Lillia_2019-02-25T15:29:48.662500
1,551,108,588.6625
10,557
pythondev
help
I recommend removing the `else`, it's confusing.
2019-02-25T15:30:06.663000
Lillia
pythondev_help_Lillia_2019-02-25T15:30:06.663000
1,551,108,606.663
10,558
pythondev
help
But otherwise that is exactly what I was hoping you would get
2019-02-25T15:30:08.663200
Clemmie
pythondev_help_Clemmie_2019-02-25T15:30:08.663200
1,551,108,608.6632
10,559
pythondev
help
If you want to go for really performant, take a look at `set` comparisons
2019-02-25T15:30:24.663600
Clemmie
pythondev_help_Clemmie_2019-02-25T15:30:24.663600
1,551,108,624.6636
10,560
pythondev
help
Hey thanks you guys a ton for all the help
2019-02-25T15:31:18.663900
Demetrice
pythondev_help_Demetrice_2019-02-25T15:31:18.663900
1,551,108,678.6639
10,561
pythondev
help
I'm not sure what set comparrisions are but i'll do some reading on it really quickly
2019-02-25T15:31:34.664300
Demetrice
pythondev_help_Demetrice_2019-02-25T15:31:34.664300
1,551,108,694.6643
10,562
pythondev
help
^ this, just return true at the end of the function. If it were false it would have already short-circuited and returned
2019-02-25T15:31:50.664400
Clemmie
pythondev_help_Clemmie_2019-02-25T15:31:50.664400
1,551,108,710.6644
10,563
pythondev
help
:taco: <@Demetrice> for sticking with it
2019-02-25T15:32:20.664800
Clemmie
pythondev_help_Clemmie_2019-02-25T15:32:20.664800
1,551,108,740.6648
10,564
pythondev
help
I do venvs; PyCharm's pretty good about picking them up.
2019-02-25T15:36:35.664900
Lillia
pythondev_help_Lillia_2019-02-25T15:36:35.664900
1,551,108,995.6649
10,565
pythondev
help
Conda's probably "better".
2019-02-25T15:36:44.665100
Lillia
pythondev_help_Lillia_2019-02-25T15:36:44.665100
1,551,109,004.6651
10,566
pythondev
help
:taco: <@Clemmie> :taco: <@Carlo> :taco: <@Sasha> :taco:<@Lillia>. Thank you all for the guidance
2019-02-25T15:38:46.666500
Demetrice
pythondev_help_Demetrice_2019-02-25T15:38:46.666500
1,551,109,126.6665
10,567
pythondev
help
I'm actually gonna be here all day. I have so much ground to cover
2019-02-25T15:39:10.667300
Demetrice
pythondev_help_Demetrice_2019-02-25T15:39:10.667300
1,551,109,150.6673
10,568
pythondev
help
don't worry
2019-02-25T15:39:18.667600
Carlo
pythondev_help_Carlo_2019-02-25T15:39:18.667600
1,551,109,158.6676
10,569
pythondev
help
:taco: <@Lloyd> <@Carlo> <@Sasha> <@Lillia> Even my taco syntax was incorrect lol
2019-02-25T15:39:51.668400
Demetrice
pythondev_help_Demetrice_2019-02-25T15:39:51.668400
1,551,109,191.6684
10,570
pythondev
help
Starting a new job in a couple weeks; I will have to introduce this taco thing.
2019-02-25T15:41:17.669000
Lillia
pythondev_help_Lillia_2019-02-25T15:41:17.669000
1,551,109,277.669
10,571
pythondev
help
Thanks!
2019-02-25T16:15:01.669500
Granville
pythondev_help_Granville_2019-02-25T16:15:01.669500
1,551,111,301.6695
10,572
pythondev
help
I'm having a git issue :confused:
2019-02-25T17:49:52.670000
Nikki
pythondev_help_Nikki_2019-02-25T17:49:52.670000
1,551,116,992.67
10,573
pythondev
help
git got you?
2019-02-25T17:50:14.670700
Hiroko
pythondev_help_Hiroko_2019-02-25T17:50:14.670700
1,551,117,014.6707
10,574
pythondev
help
I commit changes but got a warning a file was too big - I deleted it and tried again but it keeps saying the same error like the file is still there
2019-02-25T17:50:29.671100
Nikki
pythondev_help_Nikki_2019-02-25T17:50:29.671100
1,551,117,029.6711
10,575
pythondev
help
github
2019-02-25T17:50:31.671300
Nikki
pythondev_help_Nikki_2019-02-25T17:50:31.671300
1,551,117,031.6713
10,576
pythondev
help
i then did git stash and tried again but just getting the same
2019-02-25T17:51:06.671800
Nikki
pythondev_help_Nikki_2019-02-25T17:51:06.671800
1,551,117,066.6718
10,577
pythondev
help
is there a way to clear it and start again without losing my local changes
2019-02-25T17:51:37.672400
Nikki
pythondev_help_Nikki_2019-02-25T17:51:37.672400
1,551,117,097.6724
10,578
pythondev
help
how big a file
2019-02-25T17:52:35.672600
Hiroko
pythondev_help_Hiroko_2019-02-25T17:52:35.672600
1,551,117,155.6726
10,579
pythondev
help
git really isn’t made for large file storage
2019-02-25T17:52:48.673000
Hiroko
pythondev_help_Hiroko_2019-02-25T17:52:48.673000
1,551,117,168.673
10,580
pythondev
help
might want to either offload that elsewhere or check into Github Large File Support
2019-02-25T17:53:05.673700
Hiroko
pythondev_help_Hiroko_2019-02-25T17:53:05.673700
1,551,117,185.6737
10,581
pythondev
help
it was just a testing file - I didn't need it so just deleted it
2019-02-25T17:53:19.674200
Nikki
pythondev_help_Nikki_2019-02-25T17:53:19.674200
1,551,117,199.6742
10,582
pythondev
help
and when you deleted the file, did you delete it from the cache
2019-02-25T17:53:24.674400
Hiroko
pythondev_help_Hiroko_2019-02-25T17:53:24.674400
1,551,117,204.6744
10,583
pythondev
help
eg `git rm --cached &lt;file-name&gt;`?
2019-02-25T17:53:46.674800
Hiroko
pythondev_help_Hiroko_2019-02-25T17:53:46.674800
1,551,117,226.6748
10,584
pythondev
help
I tried that it I got a fatal path error no file found
2019-02-25T17:55:33.675300
Nikki
pythondev_help_Nikki_2019-02-25T17:55:33.675300
1,551,117,333.6753
10,585
pythondev
help
git stash pop
2019-02-25T17:55:48.675500
Candra
pythondev_help_Candra_2019-02-25T17:55:48.675500
1,551,117,348.6755
10,586
pythondev
help
then git rm --cached filename
2019-02-25T17:55:58.675800
Candra
pythondev_help_Candra_2019-02-25T17:55:58.675800
1,551,117,358.6758
10,587
pythondev
help
it's now saying no local changes
2019-02-25T17:57:55.676100
Nikki
pythondev_help_Nikki_2019-02-25T17:57:55.676100
1,551,117,475.6761
10,588
pythondev
help
ffs
2019-02-25T17:57:56.676300
Nikki
pythondev_help_Nikki_2019-02-25T17:57:56.676300
1,551,117,476.6763
10,589
pythondev
help
have I lost my work? I've not done any pull requests etc
2019-02-25T17:58:13.676700
Nikki
pythondev_help_Nikki_2019-02-25T17:58:13.676700
1,551,117,493.6767
10,590
pythondev
help
Did you checkout?
2019-02-25T17:59:23.677000
Lillia
pythondev_help_Lillia_2019-02-25T17:59:23.677000
1,551,117,563.677
10,591
pythondev
help
no
2019-02-25T17:59:28.677200
Nikki
pythondev_help_Nikki_2019-02-25T17:59:28.677200
1,551,117,568.6772
10,592
pythondev
help
Did you stash and not pop?
2019-02-25T17:59:44.677600
Lillia
pythondev_help_Lillia_2019-02-25T17:59:44.677600
1,551,117,584.6776
10,593
pythondev
help
Yea I did a stash first
2019-02-25T18:00:40.677800
Nikki
pythondev_help_Nikki_2019-02-25T18:00:40.677800
1,551,117,640.6778
10,594
pythondev
help
Yeah so all your changes are stashed?
2019-02-25T18:01:03.678000
Lillia
pythondev_help_Lillia_2019-02-25T18:01:03.678000
1,551,117,663.678
10,595
pythondev
help
So they wouldn't show up unless they are untracked
2019-02-25T18:01:31.678400
Lillia
pythondev_help_Lillia_2019-02-25T18:01:31.678400
1,551,117,691.6784
10,596
pythondev
help
what should I do now/
2019-02-25T18:02:02.678600
Nikki
pythondev_help_Nikki_2019-02-25T18:02:02.678600
1,551,117,722.6786
10,597
pythondev
help
unstash and then stash pop and start again?
2019-02-25T18:02:34.679000
Nikki
pythondev_help_Nikki_2019-02-25T18:02:34.679000
1,551,117,754.679
10,598
pythondev
help
Yeah try to unstash; theoretically you shouldn't have been able to commit the too-big file
2019-02-25T18:03:17.679400
Lillia
pythondev_help_Lillia_2019-02-25T18:03:17.679400
1,551,117,797.6794
10,599
pythondev
help
Oh `unstash` is equivalent to `pop`, if I understand what you're saying by `unstash`
2019-02-25T18:04:32.680100
Lillia
pythondev_help_Lillia_2019-02-25T18:04:32.680100
1,551,117,872.6801
10,600
pythondev
help
no stash found
2019-02-25T18:05:19.680300
Nikki
pythondev_help_Nikki_2019-02-25T18:05:19.680300
1,551,117,919.6803
10,601
pythondev
help
:grimacing:
2019-02-25T18:05:40.680500
Lillia
pythondev_help_Lillia_2019-02-25T18:05:40.680500
1,551,117,940.6805
10,602
pythondev
help
oh dear
2019-02-25T18:06:33.680700
Nikki
pythondev_help_Nikki_2019-02-25T18:06:33.680700
1,551,117,993.6807
10,603
pythondev
help
this is one of those moments you learn a hard lesson
2019-02-25T18:07:13.681300
Nikki
pythondev_help_Nikki_2019-02-25T18:07:13.681300
1,551,118,033.6813
10,604
pythondev
help
I've not done a commit in over a week
2019-02-25T18:07:25.681600
Nikki
pythondev_help_Nikki_2019-02-25T18:07:25.681600
1,551,118,045.6816
10,605
pythondev
help
Ouch
2019-02-25T18:07:34.681900
Lillia
pythondev_help_Lillia_2019-02-25T18:07:34.681900
1,551,118,054.6819
10,606
pythondev
help
<http://sethrobertson.github.io/GitBestPractices/>
2019-02-25T18:07:40.682200
Lillia
pythondev_help_Lillia_2019-02-25T18:07:40.682200
1,551,118,060.6822
10,607
pythondev
help
is there anything else you can think of to try?
2019-02-25T18:07:47.682400
Nikki
pythondev_help_Nikki_2019-02-25T18:07:47.682400
1,551,118,067.6824
10,608
pythondev
help
If it's not in stash and it's not sitting unstaged or committed, then no. git will happily delete things if you tell it to.
2019-02-25T18:08:10.682900
Lillia
pythondev_help_Lillia_2019-02-25T18:08:10.682900
1,551,118,090.6829
10,609
pythondev
help
doesn't make sense - I've just copied the file which I had opened and resaved it and git status is saying directory is clean nothing to commit
2019-02-25T18:09:30.684200
Nikki
pythondev_help_Nikki_2019-02-25T18:09:30.684200
1,551,118,170.6842
10,610
pythondev
help
What do you mean "resaved"
2019-02-25T18:09:42.684400
Lillia
pythondev_help_Lillia_2019-02-25T18:09:42.684400
1,551,118,182.6844
10,611
pythondev
help
I don't know I'm confused lol
2019-02-25T18:12:06.685100
Nikki
pythondev_help_Nikki_2019-02-25T18:12:06.685100
1,551,118,326.6851
10,612
pythondev
help
Like in the IDE/editor?
2019-02-25T18:12:26.685500
Lillia
pythondev_help_Lillia_2019-02-25T18:12:26.685500
1,551,118,346.6855
10,613
pythondev
help
my local changes are still here so why doesn't git see them
2019-02-25T18:12:36.685900
Nikki
pythondev_help_Nikki_2019-02-25T18:12:36.685900
1,551,118,356.6859
10,614
pythondev
help
Git won't lie, an editor/IDE might
2019-02-25T18:12:58.686200
Lillia
pythondev_help_Lillia_2019-02-25T18:12:58.686200
1,551,118,378.6862
10,615
pythondev
help
there are defo there
2019-02-25T18:16:41.686400
Nikki
pythondev_help_Nikki_2019-02-25T18:16:41.686400
1,551,118,601.6864
10,616
pythondev
help
on my server where my git file is the changes are there but a git status says there is nothing
2019-02-25T18:17:06.686900
Nikki
pythondev_help_Nikki_2019-02-25T18:17:06.686900
1,551,118,626.6869
10,617
pythondev
help
wtf lol
2019-02-25T18:17:11.687100
Nikki
pythondev_help_Nikki_2019-02-25T18:17:11.687100
1,551,118,631.6871
10,618
pythondev
help
I've just added `# test` to the file and the change was picked up
2019-02-25T18:17:37.687600
Nikki
pythondev_help_Nikki_2019-02-25T18:17:37.687600
1,551,118,657.6876
10,619
pythondev
help
Sounds like the changes are already committed; can you do `git log -p`
2019-02-25T18:17:53.687900
Lillia
pythondev_help_Lillia_2019-02-25T18:17:53.687900
1,551,118,673.6879
10,620