Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: please help me TypeError: unsupported operand type(s) for +=: 'int' and 'list'
Post: RE: I am confused , please help me
hi,
at line 5, when you use split, you create a list of two elements. the type of those elements is string.
and in your code, I don't understand what "S" count. you never compare any number to anothe... |
|
Scorpio |
General Coding Help |
2 |
7,228 |
Mar-26-2019, 05:50 PM |
|
|
Thread: not resize a frame
Post: RE: not resize a frame
it s there.
could you explain me why my frame is resize when my buttons are created?
if I run it without button, I obtain the right size.
class playmats(object):
def __init__(self):
... |
|
Scorpio |
GUI |
2 |
3,531 |
Mar-13-2019, 11:24 PM |
|
|
Thread: not resize a frame
Post: not resize a frame
hi,
I define the size of a frame but when I add 4 buttons, it's automatically resized.
someone knows how I can fix it ?
thanks for your help |
|
Scorpio |
GUI |
2 |
3,531 |
Mar-13-2019, 06:17 PM |
|
|
Thread: tkinter help
Post: tkinter help
hi everybody,
I m coding a card game. I already coded all the game, I just miss the display.
To code it, I use tkinter but I have some trouble with my code.
it blow up in "create_player" fonction w... |
|
Scorpio |
GUI |
0 |
1,499 |
Mar-12-2019, 07:29 PM |
|
|
Thread: Converting list elements and sublists from int to str
Post: RE: Converting list elements and sublists from int...
hi,
you want to use the right method but not with the right way.
for using map, the first item is a fonction type lambda.
for using lambda, if "x" is your variable for iteration, you can do that :
... |
|
Scorpio |
General Coding Help |
5 |
4,573 |
Mar-10-2019, 11:28 AM |
|
|
Thread: Sum of 1-100
Post: RE: Sum of 1-100
hi,
if you looks the first code, every time you iterate a new 'n' in 'r', it s added to 'x' and 'x' change after each iteration.
in the second one, for each iteration, you give a new value for 'y' wh... |
|
Scorpio |
General Coding Help |
2 |
2,802 |
Mar-02-2019, 02:15 PM |
|
|
Thread: remainder operator %
Post: RE: remainder operator %
hi,
you forgot the ":" at the end of the line two.
if it s not correct after, check your indentation.
hope that will be useful |
|
Scorpio |
General Coding Help |
3 |
2,785 |
Feb-14-2019, 01:11 AM |
|
|
Thread: SQL and fetchone
Post: RE: SQL and fetchone
sorry, I am not a nice English speaker. sometimes I mnot totally clear when I try to write what I think.
if I understand the real meaning of your answer, you say without the print everything is runnin... |
|
Scorpio |
General Coding Help |
6 |
6,557 |
Feb-13-2019, 06:35 PM |
|
|
Thread: SQL and fetchone
Post: RE: SQL and fetchone
the file I try to export is a list of 318 songs with all the details you can expect about each one. but for some of them, they are any genre specified. It s not a problem, normally none should be retu... |
|
Scorpio |
General Coding Help |
6 |
6,557 |
Feb-13-2019, 04:54 PM |
|
|
Thread: SQL and fetchone
Post: SQL and fetchone
hello,
I don't understand the following error. you Ould find under my code and the file I try to enter in a database.
import xml.etree.ElementTree as ET
import sqlite3
conn = sqlite3.connect('trackd... |
|
Scorpio |
General Coding Help |
6 |
6,557 |
Feb-13-2019, 12:52 PM |
|
|
Thread: why my method doesn't find my List in the same class?
Post: RE: why my method doesn't find my List in the same...
(Jan-31-2019, 05:15 PM)ichabod801 Wrote: Value is a class attribute. You need to access that with self, just as you do with the instance attribute cards.
thanks you so much, you save my brain and pr... |
|
Scorpio |
General Coding Help |
2 |
2,391 |
Jan-31-2019, 05:21 PM |
|
|
Thread: iterate through a list with comparison of expression
Post: RE: iterate through a list with comparison of expr...
(Jan-31-2019, 05:05 PM)perfringo Wrote: (Jan-31-2019, 04:59 PM)Alexandro Wrote: How can I go through a list and I need for "this" and for "that" 1 statement This is not very helpful. From that I p... |
|
Scorpio |
General Coding Help |
6 |
3,421 |
Jan-31-2019, 05:16 PM |
|
|
Thread: why my method doesn't find my List in the same class?
Post: why my method doesn't find my List in the same cla...
hello everybody,
I am begginner in python. I wrote the code under and I don't understand why I have the error you can find under
from random import *
class CardGame (object):
Color = ["heart", ... |
|
Scorpio |
General Coding Help |
2 |
2,391 |
Jan-31-2019, 04:59 PM |
|
|
Thread: iterate through a list with comparison of expression
Post: RE: iterate through a list with comparison of expr...
maybe I don't understand what you would like to obtain with you code
your code print "0" for the 4th "print" because you write that in your "print". if you want to print another value for "that", you... |
|
Scorpio |
General Coding Help |
6 |
3,421 |
Jan-31-2019, 04:48 PM |
|
|
Thread: iterate through a list with comparison of expression
Post: RE: iterate through a list with comparison of expr...
hi Alexandro,
I think this could be right for you :
wordList = ['hi', 'hello', 'this', 'that', 'is', 'of']
for word in wordList:
if word == 'hello':
print (1)
else :
print (... |
|
Scorpio |
General Coding Help |
6 |
3,421 |
Jan-31-2019, 04:16 PM |