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
sorry dog that's still unformatted
2019-04-10T12:17:53.092000
Claudine
pythondev_help_Claudine_2019-04-10T12:17:53.092000
1,554,898,673.092
17,921
pythondev
help
what do you need so you can help me out
2019-04-10T12:18:13.092600
Elwanda
pythondev_help_Elwanda_2019-04-10T12:18:13.092600
1,554,898,693.0926
17,922
pythondev
help
this is for a school project
2019-04-10T12:18:19.093100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:18:19.093100
1,554,898,699.0931
17,923
pythondev
help
thats y
2019-04-10T12:18:20.093200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:18:20.093200
1,554,898,700.0932
17,924
pythondev
help
see the plus button on the left of where you're typing? hit that and click "code or text snippet" and post code in there
2019-04-10T12:18:39.093600
Claudine
pythondev_help_Claudine_2019-04-10T12:18:39.093600
1,554,898,719.0936
17,925
pythondev
help
it formats it for readbaility
2019-04-10T12:18:45.094000
Claudine
pythondev_help_Claudine_2019-04-10T12:18:45.094000
1,554,898,725.094
17,926
pythondev
help
ok
2019-04-10T12:18:48.094200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:18:48.094200
1,554,898,728.0942
17,927
pythondev
help
nvm
2019-04-10T12:19:01.094400
Claudine
pythondev_help_Claudine_2019-04-10T12:19:01.094400
1,554,898,741.0944
17,928
pythondev
help
your issue is you're missing a closing `)`
2019-04-10T12:19:07.094600
Claudine
pythondev_help_Claudine_2019-04-10T12:19:07.094600
1,554,898,747.0946
17,929
pythondev
help
None
2019-04-10T12:19:14.094900
Elwanda
pythondev_help_Elwanda_2019-04-10T12:19:14.094900
1,554,898,754.0949
17,930
pythondev
help
the one immediately after your `elif` is not closed at the end
2019-04-10T12:19:20.095300
Claudine
pythondev_help_Claudine_2019-04-10T12:19:20.095300
1,554,898,760.0953
17,931
pythondev
help
should i close it after or ?
2019-04-10T12:19:57.095500
Elwanda
pythondev_help_Elwanda_2019-04-10T12:19:57.095500
1,554,898,797.0955
17,932
pythondev
help
it seems like you're trying to wrap that whole thing, so i'd close it at the very end after `won a game")`
2019-04-10T12:20:36.096000
Claudine
pythondev_help_Claudine_2019-04-10T12:20:36.096000
1,554,898,836.096
17,933
pythondev
help
``` You originally typed: elif (button1 ["text"] == "O" and button2 ["text"] == "O" and button3 ["text"] == "O" or button4 ["text"] == "O" and button5 ["text"] == "O" and button6 ["text"] == "O" or button7 ["text"] == "O" and button8 ["text"] == "O" and button9 ["text"] == "O" or button3 ["text"] == "O" and button5 ["text"] == "O" and button7 ["text"] == "O" or button1 ["text"] == "O" and button5 ["text"] == "O" and button9 ["text"] == "O" or button1 ["text"] == "O" and button4 ["text"] == "O" and button7 ["text"] == "O" or button2 ["text"] == "O" and button5 ["text"] == "O" and button8 ["text"] == "O" or button3 ["text"] == "O" and button6 ["text"] == "O" and button9 ["text"] == "O" or tkinter.messagebox.showinfo("Winner O", "You have just won a game") You probabaly want: elif (button1 ["text"] == "O" and button2 ["text"] == "O" and button3 ["text"] == "O" or button4 ["text"] == "O" and button5 ["text"] == "O" and button6 ["text"] == "O" or button7 ["text"] == "O" and button8 ["text"] == "O" and button9 ["text"] == "O" or button3 ["text"] == "O" and button5 ["text"] == "O" and button7 ["text"] == "O" or button1 ["text"] == "O" and button5 ["text"] == "O" and button9 ["text"] == "O" or button1 ["text"] == "O" and button4 ["text"] == "O" and button7 ["text"] == "O" or button2 ["text"] == "O" and button5 ["text"] == "O" and button8 ["text"] == "O" or button3 ["text"] == "O" and button6 ["text"] == "O" and button9 ["text"] == "O" or tkinter.messagebox.showinfo("Winner O", "You have just won a game")) ```
2019-04-10T12:20:57.096500
Claudine
pythondev_help_Claudine_2019-04-10T12:20:57.096500
1,554,898,857.0965
17,934
pythondev
help
ok thanks man u saved my ass :joy:
2019-04-10T12:21:33.096800
Elwanda
pythondev_help_Elwanda_2019-04-10T12:21:33.096800
1,554,898,893.0968
17,935
pythondev
help
its still showing invalid syntax :disappointed_relieved:
2019-04-10T12:22:14.097200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:22:14.097200
1,554,898,934.0972
17,936
pythondev
help
do you need a `:` at the end too? and to fill out that `elif` statement?
2019-04-10T12:22:45.097600
Claudine
pythondev_help_Claudine_2019-04-10T12:22:45.097600
1,554,898,965.0976
17,937
pythondev
help
no ithink so
2019-04-10T12:23:26.097800
Elwanda
pythondev_help_Elwanda_2019-04-10T12:23:26.097800
1,554,899,006.0978
17,938
pythondev
help
in th ebig chunk of unformatted code you posted there are two `elif` statements that do not have the `:` at the end
2019-04-10T12:24:24.098500
Claudine
pythondev_help_Claudine_2019-04-10T12:24:24.098500
1,554,899,064.0985
17,939
pythondev
help
you have one of those statements, then ``` #123 #456 #789 ``` then a second
2019-04-10T12:24:42.099100
Claudine
pythondev_help_Claudine_2019-04-10T12:24:42.099100
1,554,899,082.0991
17,940
pythondev
help
where should i put : ?
2019-04-10T12:24:52.099500
Elwanda
pythondev_help_Elwanda_2019-04-10T12:24:52.099500
1,554,899,092.0995
17,941
pythondev
help
see how before you did `elif buttons ["text"] == " " and click == False:`? the `:` just means it's the end of the `if` or `elif` check and everything after is what your doing if that statement is true. in the case of your broken code it goes in the same spot, just a bit confusing since that statment is spread across so many lines the `:` would go here: `... won a game")):`
2019-04-10T12:26:39.101300
Claudine
pythondev_help_Claudine_2019-04-10T12:26:39.101300
1,554,899,199.1013
17,942
pythondev
help
everything in between the open parenthesis `elif (` and the closing parenthesis `game"))` is part of that same `elif`
2019-04-10T12:27:20.102000
Claudine
pythondev_help_Claudine_2019-04-10T12:27:20.102000
1,554,899,240.102
17,943
pythondev
help
now this problem i have
2019-04-10T12:27:46.102100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:27:46.102100
1,554,899,266.1021
17,944
pythondev
help
yea that makes sense
2019-04-10T12:28:57.102500
Claudine
pythondev_help_Claudine_2019-04-10T12:28:57.102500
1,554,899,337.1025
17,945
pythondev
help
see where you have: ``` #123 #456 #789 ``` those are commented out lines, so essentially the `elif` before those numbers has no body, so it doesn't expect to see another `elif`
2019-04-10T12:29:51.103400
Claudine
pythondev_help_Claudine_2019-04-10T12:29:51.103400
1,554,899,391.1034
17,946
pythondev
help
so i remove it ?
2019-04-10T12:30:10.103900
Elwanda
pythondev_help_Elwanda_2019-04-10T12:30:10.103900
1,554,899,410.1039
17,947
pythondev
help
so you'd have to add some boyd logic to that first `elif`, even just a `print('hey') or something would work
2019-04-10T12:30:15.104100
Claudine
pythondev_help_Claudine_2019-04-10T12:30:15.104100
1,554,899,415.1041
17,948
pythondev
help
if you remove it youll still have the problem, you just need some sort of operation or logic in between
2019-04-10T12:30:33.104500
Claudine
pythondev_help_Claudine_2019-04-10T12:30:33.104500
1,554,899,433.1045
17,949
pythondev
help
like ?
2019-04-10T12:30:40.104900
Elwanda
pythondev_help_Elwanda_2019-04-10T12:30:40.104900
1,554,899,440.1049
17,950
pythondev
help
literally anything `foo = 1` `1 + 1`
2019-04-10T12:31:05.105300
Claudine
pythondev_help_Claudine_2019-04-10T12:31:05.105300
1,554,899,465.1053
17,951
pythondev
help
`print()`
2019-04-10T12:31:17.105600
Claudine
pythondev_help_Claudine_2019-04-10T12:31:17.105600
1,554,899,477.1056
17,952
pythondev
help
replace with elif right ?
2019-04-10T12:31:18.105700
Elwanda
pythondev_help_Elwanda_2019-04-10T12:31:18.105700
1,554,899,478.1057
17,953
pythondev
help
wht about this ?
2019-04-10T12:32:49.105800
Elwanda
pythondev_help_Elwanda_2019-04-10T12:32:49.105800
1,554,899,569.1058
17,954
pythondev
help
no
2019-04-10T12:33:08.106200
Claudine
pythondev_help_Claudine_2019-04-10T12:33:08.106200
1,554,899,588.1062
17,955
pythondev
help
here....
2019-04-10T12:33:13.106400
Claudine
pythondev_help_Claudine_2019-04-10T12:33:13.106400
1,554,899,593.1064
17,956
pythondev
help
None
2019-04-10T12:33:25.106800
Claudine
pythondev_help_Claudine_2019-04-10T12:33:25.106800
1,554,899,605.1068
17,957
pythondev
help
Wow... I feel like there has got to be a better way to write that logic
2019-04-10T12:33:29.107200
Genesis
pythondev_help_Genesis_2019-04-10T12:33:29.107200
1,554,899,609.1072
17,958
pythondev
help
What i posted was your original code
2019-04-10T12:33:44.107400
Claudine
pythondev_help_Claudine_2019-04-10T12:33:44.107400
1,554,899,624.1074
17,959
pythondev
help
oh k
2019-04-10T12:33:49.107700
Elwanda
pythondev_help_Elwanda_2019-04-10T12:33:49.107700
1,554,899,629.1077
17,960
pythondev
help
you want to make these updates:
2019-04-10T12:33:51.107900
Claudine
pythondev_help_Claudine_2019-04-10T12:33:51.107900
1,554,899,631.1079
17,961
pythondev
help
ok
2019-04-10T12:33:54.108200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:33:54.108200
1,554,899,634.1082
17,962
pythondev
help
What about `all([button['text'] == 'x' for button in buttons])`
2019-04-10T12:34:54.109400
Genesis
pythondev_help_Genesis_2019-04-10T12:34:54.109400
1,554,899,694.1094
17,963
pythondev
help
Your entire if statement can be written like that :point_up:
2019-04-10T12:35:09.110100
Genesis
pythondev_help_Genesis_2019-04-10T12:35:09.110100
1,554,899,709.1101
17,964
pythondev
help
i thought of that. Will it work ? :point_up_2:
2019-04-10T12:35:16.110200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:35:16.110200
1,554,899,716.1102
17,965
pythondev
help
None
2019-04-10T12:35:18.110300
Claudine
pythondev_help_Claudine_2019-04-10T12:35:18.110300
1,554,899,718.1103
17,966
pythondev
help
You can also do ``` If 'x' == button1 == button2 == buttton3: ```
2019-04-10T12:36:05.111800
Genesis
pythondev_help_Genesis_2019-04-10T12:36:05.111800
1,554,899,765.1118
17,967
pythondev
help
No need for all the ands
2019-04-10T12:36:11.112100
Genesis
pythondev_help_Genesis_2019-04-10T12:36:11.112100
1,554,899,771.1121
17,968
pythondev
help
yea you can simplify a whole ton
2019-04-10T12:36:39.112700
Claudine
pythondev_help_Claudine_2019-04-10T12:36:39.112700
1,554,899,799.1127
17,969
pythondev
help
now it comes like this? Wht the heck is wrong
2019-04-10T12:37:48.112900
Elwanda
pythondev_help_Elwanda_2019-04-10T12:37:48.112900
1,554,899,868.1129
17,970
pythondev
help
the error message is correct, python requires very specific indenting
2019-04-10T12:39:57.113900
Claudine
pythondev_help_Claudine_2019-04-10T12:39:57.113900
1,554,899,997.1139
17,971
pythondev
help
i am failing in my python project
2019-04-10T12:40:19.114600
Elwanda
pythondev_help_Elwanda_2019-04-10T12:40:19.114600
1,554,900,019.1146
17,972
pythondev
help
:woman-facepalming::woman-facepalming::woman-facepalming::woman-facepalming:
2019-04-10T12:40:26.114900
Elwanda
pythondev_help_Elwanda_2019-04-10T12:40:26.114900
1,554,900,026.1149
17,973
pythondev
help
in this case you're doing ``` if (somecondition): foo() ``` you need ``` if (somcondition): foo() ```
2019-04-10T12:40:31.115100
Claudine
pythondev_help_Claudine_2019-04-10T12:40:31.115100
1,554,900,031.1151
17,974
pythondev
help
dont worry about it man :slightly_smiling_face:
2019-04-10T12:40:41.115400
Claudine
pythondev_help_Claudine_2019-04-10T12:40:41.115400
1,554,900,041.1154
17,975
pythondev
help
None
2019-04-10T12:41:09.116100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:41:09.116100
1,554,900,069.1161
17,976
pythondev
help
the body of an `if` or `elif` statements needs to be indented, python only knows the `if`/`elif` statement has ended when it sees stuff on the same indentation level as the `if`
2019-04-10T12:41:35.116800
Claudine
pythondev_help_Claudine_2019-04-10T12:41:35.116800
1,554,900,095.1168
17,977
pythondev
help
why those indents below `buttons`?
2019-04-10T12:42:02.117300
Hiroko
pythondev_help_Hiroko_2019-04-10T12:42:02.117300
1,554,900,122.1173
17,978
pythondev
help
whatcha doing with `buttons=StringVar ()` there that looks odd
2019-04-10T12:42:04.117400
Claudine
pythondev_help_Claudine_2019-04-10T12:42:04.117400
1,554,900,124.1174
17,979
pythondev
help
all that stuff should be indented consistently
2019-04-10T12:42:17.117800
Claudine
pythondev_help_Claudine_2019-04-10T12:42:17.117800
1,554,900,137.1178
17,980
pythondev
help
i am actually creating an game
2019-04-10T12:42:24.118000
Elwanda
pythondev_help_Elwanda_2019-04-10T12:42:24.118000
1,554,900,144.118
17,981
pythondev
help
do this:
2019-04-10T12:42:54.118300
Claudine
pythondev_help_Claudine_2019-04-10T12:42:54.118300
1,554,900,174.1183
17,982
pythondev
help
None
2019-04-10T12:43:19.118400
Claudine
pythondev_help_Claudine_2019-04-10T12:43:19.118400
1,554,900,199.1184
17,983
pythondev
help
whats the change ?
2019-04-10T12:43:56.119100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:43:56.119100
1,554,900,236.1191
17,984
pythondev
help
the indentation
2019-04-10T12:44:01.119300
Claudine
pythondev_help_Claudine_2019-04-10T12:44:01.119300
1,554,900,241.1193
17,985
pythondev
help
see how they are all indented consistently?
2019-04-10T12:44:10.119700
Claudine
pythondev_help_Claudine_2019-04-10T12:44:10.119700
1,554,900,250.1197
17,986
pythondev
help
in yours you have ``` buttons=... button1... ``` in this it's ``` buttons=... button1... ```
2019-04-10T12:44:48.120400
Claudine
pythondev_help_Claudine_2019-04-10T12:44:48.120400
1,554,900,288.1204
17,987
pythondev
help
python is strict about indentation
2019-04-10T12:44:58.120700
Claudine
pythondev_help_Claudine_2019-04-10T12:44:58.120700
1,554,900,298.1207
17,988
pythondev
help
ok
2019-04-10T12:45:09.121000
Elwanda
pythondev_help_Elwanda_2019-04-10T12:45:09.121000
1,554,900,309.121
17,989
pythondev
help
let me try
2019-04-10T12:45:13.121300
Elwanda
pythondev_help_Elwanda_2019-04-10T12:45:13.121300
1,554,900,313.1213
17,990
pythondev
help
it was awkward for me at first too but once you get used to it it makes a lot of sense and keeps your code neat and readable
2019-04-10T12:45:20.121500
Claudine
pythondev_help_Claudine_2019-04-10T12:45:20.121500
1,554,900,320.1215
17,991
pythondev
help
still the same error is coming :disappointed_relieved:
2019-04-10T12:46:07.121800
Elwanda
pythondev_help_Elwanda_2019-04-10T12:46:07.121800
1,554,900,367.1218
17,992
pythondev
help
oh it's because those all come right after the `elif` above that
2019-04-10T12:47:13.122100
Claudine
pythondev_help_Claudine_2019-04-10T12:47:13.122100
1,554,900,433.1221
17,993
pythondev
help
if they are supposed to be part of that `elif` statment they need to be indented 1 level more than the `elif`
2019-04-10T12:47:44.122800
Claudine
pythondev_help_Claudine_2019-04-10T12:47:44.122800
1,554,900,464.1228
17,994
pythondev
help
so i should ?
2019-04-10T12:47:59.123300
Elwanda
pythondev_help_Elwanda_2019-04-10T12:47:59.123300
1,554,900,479.1233
17,995
pythondev
help
if they are not supposed to part of the `elif` than you just need something in the body of the `elif`
2019-04-10T12:48:05.123500
Claudine
pythondev_help_Claudine_2019-04-10T12:48:05.123500
1,554,900,485.1235
17,996
pythondev
help
im not 100% sure what your trying to do so it's hard to say. do you want to run all that `button` stuff from within the `elif` statement right above them? if so then indent them 1 level more than the elif. if they're not part of the elif then give the elif some body logic
2019-04-10T12:49:07.124700
Claudine
pythondev_help_Claudine_2019-04-10T12:49:07.124700
1,554,900,547.1247
17,997
pythondev
help
it could help to brush up on some python tutorials about indentation and formatting too
2019-04-10T12:49:52.125200
Claudine
pythondev_help_Claudine_2019-04-10T12:49:52.125200
1,554,900,592.1252
17,998
pythondev
help
Do you know the game X and O?
2019-04-10T12:50:12.125700
Elwanda
pythondev_help_Elwanda_2019-04-10T12:50:12.125700
1,554,900,612.1257
17,999
pythondev
help
i am making that
2019-04-10T12:50:16.126100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:50:16.126100
1,554,900,616.1261
18,000
pythondev
help
tic tac toe yea i saw it in your code
2019-04-10T12:50:23.126300
Claudine
pythondev_help_Claudine_2019-04-10T12:50:23.126300
1,554,900,623.1263
18,001
pythondev
help
yeah :joy::stuck_out_tongue_winking_eye:
2019-04-10T12:50:37.126700
Elwanda
pythondev_help_Elwanda_2019-04-10T12:50:37.126700
1,554,900,637.1267
18,002
pythondev
help
im also just trying to point you in the right direction so you recognize your own mistakes, rather than just give you correct code
2019-04-10T12:50:54.127100
Claudine
pythondev_help_Claudine_2019-04-10T12:50:54.127100
1,554,900,654.1271
18,003
pythondev
help
oh..
2019-04-10T12:51:12.127300
Elwanda
pythondev_help_Elwanda_2019-04-10T12:51:12.127300
1,554,900,672.1273
18,004
pythondev
help
yeah
2019-04-10T12:51:16.127500
Elwanda
pythondev_help_Elwanda_2019-04-10T12:51:16.127500
1,554,900,676.1275
18,005
pythondev
help
:smile:
2019-04-10T12:51:18.127700
Claudine
pythondev_help_Claudine_2019-04-10T12:51:18.127700
1,554,900,678.1277
18,006
pythondev
help
i dont wanna do your homework for you :smile:
2019-04-10T12:51:23.127900
Claudine
pythondev_help_Claudine_2019-04-10T12:51:23.127900
1,554,900,683.1279
18,007
pythondev
help
:ok_hand:
2019-04-10T12:51:26.128200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:51:26.128200
1,554,900,686.1282
18,008
pythondev
help
So what do i do now ?
2019-04-10T12:53:01.128400
Elwanda
pythondev_help_Elwanda_2019-04-10T12:53:01.128400
1,554,900,781.1284
18,009
pythondev
help
i got it correct
2019-04-10T12:55:56.129500
Elwanda
pythondev_help_Elwanda_2019-04-10T12:55:56.129500
1,554,900,956.1295
18,010
pythondev
help
lol i dunno dude. let me rephrase what I said and walk you through it again
2019-04-10T12:55:56.129600
Claudine
pythondev_help_Claudine_2019-04-10T12:55:56.129600
1,554,900,956.1296
18,011
pythondev
help
oh you got it?
2019-04-10T12:55:59.129900
Claudine
pythondev_help_Claudine_2019-04-10T12:55:59.129900
1,554,900,959.1299
18,012
pythondev
help
yeahh....
2019-04-10T12:56:00.130000
Elwanda
pythondev_help_Elwanda_2019-04-10T12:56:00.130000
1,554,900,960.13
18,013
pythondev
help
but i prob
2019-04-10T12:56:04.130200
Elwanda
pythondev_help_Elwanda_2019-04-10T12:56:04.130200
1,554,900,964.1302
18,014
pythondev
help
when i run it
2019-04-10T12:56:08.130400
Elwanda
pythondev_help_Elwanda_2019-04-10T12:56:08.130400
1,554,900,968.1304
18,015
pythondev
help
i mean step 1 is getting it to actually run so thats great
2019-04-10T12:56:35.130900
Claudine
pythondev_help_Claudine_2019-04-10T12:56:35.130900
1,554,900,995.1309
18,016
pythondev
help
None
2019-04-10T12:56:43.131100
Elwanda
pythondev_help_Elwanda_2019-04-10T12:56:43.131100
1,554,901,003.1311
18,017
pythondev
help
well that's a pretty straightforward error isn't it? it's telling you that no such thing as `T1` exists
2019-04-10T12:57:19.132000
Claudine
pythondev_help_Claudine_2019-04-10T12:57:19.132000
1,554,901,039.132
18,018
pythondev
help
did you define something called `T1` in your file?
2019-04-10T12:57:32.132300
Claudine
pythondev_help_Claudine_2019-04-10T12:57:32.132300
1,554,901,052.1323
18,019
pythondev
help
wait let me see
2019-04-10T12:57:39.132500
Elwanda
pythondev_help_Elwanda_2019-04-10T12:57:39.132500
1,554,901,059.1325
18,020