Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Help! Functions
Post: RE: Help! Functions
Was it easy like that! Thank you, I appreciate it. |
|
bwdu |
General Coding Help |
3 |
1,682 |
Sep-05-2020, 08:47 PM |
|
|
Thread: Help! Functions
Post: Help! Functions
Hi everyone! I am trying to create an English Thesaurus which the user is going to write an word as input and get the corresponding meaning, also if the user inputs a non-existing word than program ha... |
|
bwdu |
General Coding Help |
3 |
1,682 |
Sep-04-2020, 10:22 PM |
|
|
Thread: Help! Function doesn't run
Post: RE: Help! Function doesn't run
(Jul-07-2020, 11:36 AM)jefsummers Wrote: Also, your for i in range(sys.maxsize**10) is making a loop from 0 to 2 to the 63rd power minus 1, and that to the 10th power. That's a really big number. Li... |
|
bwdu |
General Coding Help |
5 |
2,483 |
Jul-09-2020, 05:48 PM |
|
|
Thread: Help! Function doesn't run
Post: Help! Function doesn't run
Hi everyone! I am trying to find 1000th prime number with this function, there is no any errors but it doesn't run and I don't know why. Can you help me?
import sys
def thousandprime():
for i in... |
|
bwdu |
General Coding Help |
5 |
2,483 |
Jul-07-2020, 11:11 AM |
|
|
Thread: Help! Error
Post: RE: Help! Error
(May-22-2020, 12:27 PM)Larz60+ Wrote: Please, always post entire, unaltered error traceback.
It contains valuable information.
Error:Traceback (most recent call last):
File "C:\Users\USER\Desktop\... |
|
bwdu |
General Coding Help |
5 |
2,408 |
May-22-2020, 12:47 PM |
|
|
Thread: Help! Error
Post: Help! Error
Hİ everyone!
tosumup is a huge list so i'll only paste the begining of it
tosumup = [[5, 5, 5, 3, 3, 3, 5, 0, 0, 0, 0, 1, 0, 3, 5, 3, 0, 0, 5, 5, 0, 3, 5, 0, 0, 5, 0, 0, 0, 0, 1, 0, 5, 0, 1, 5, 5, 5,... |
|
bwdu |
General Coding Help |
5 |
2,408 |
May-22-2020, 12:16 PM |
|
|
Thread: Help! zip() function
Post: Help! zip() function
Hello everyone!
I couldn't understand why it didn't write y. How can i fix this ---> <zip object at 0x0139F608> ?
Here is my code:
rbooks = []
nratings = []
books = list(a)
for i in range(13)... |
|
bwdu |
General Coding Help |
2 |
1,386 |
May-19-2020, 03:03 PM |
|
|
Thread: Help with dictionaries
Post: Help with dictionaries
Hello everyone! I have looked for a way to sum up the elements of each value which are lists but couldn't find a solution. I'm curious about if there is a way to reach the elements in the value lists.... |
|
bwdu |
General Coding Help |
1 |
1,390 |
May-17-2020, 05:34 PM |
|
|
Thread: Help!Unknown ERROR
Post: Help!Unknown ERROR
Hello, everyone! I am trying to run this to program together but unfortunately ı get en ERROR that I dont't know. Can you help me?
randomintseq.py
m = int(sys.argv[1])
n = int(sys.argv[2])
for i in ... |
|
bwdu |
General Coding Help |
1 |
2,053 |
Apr-20-2020, 01:46 PM |
|
|
Thread: Help! Formatting and Writing to a File
Post: Help! Formatting and Writing to a File
Hi, everyone! This is my code below;
file = open("filtereddata.txt","w")
b = [list(range(x,x+10)) for x in range(0, 100, 10)]
#headings
i = "|0|"
i1 = "|1|"
i2 = "|2|"
i3 = "|3|"
i4 = "|4|"
i5 = "|... |
|
bwdu |
General Coding Help |
2 |
2,413 |
Apr-19-2020, 06:18 PM |
|
|
Thread: Help! Lists
Post: Help! Lists
Hi everyone! Here I am trying to fill array a with the numbers in range(100)
s = list(range(100))
a = stdarray.create2D(10, 10, 0)
stdarray.write2D(a)
b = []
b += [a]
print(b)
for i in range(10):
... |
|
bwdu |
General Coding Help |
2 |
1,670 |
Apr-19-2020, 11:57 AM |
|
|
Thread: ınput-output HELP!
Post: ınput-output HELP!
Hi everybody!
In the code below ı M trying to write a program, that takes an integer n as command-line argument, reads
in n − 1 distinct integers between 1 and n from standard input, and writes the mi... |
|
bwdu |
General Coding Help |
1 |
1,952 |
Apr-18-2020, 08:21 PM |
|
|
Thread: Help! Loops
Post: RE: Help! Loops
(Apr-15-2020, 07:58 PM)Larz60+ Wrote: Quote:Hi everyone!I am curious about if i can write this code using for loop
Yes
Quote:if yes could you give me some hints?
make an attempt, and show where you ... |
|
bwdu |
General Coding Help |
2 |
1,789 |
Apr-16-2020, 01:59 PM |
|
|
Thread: Help! Loops
Post: Help! Loops
n = int(sys.argv[1])
power = 1
while 2*power <= n:
power *= 2
stdio.writeln(power)
Hi everyone!I am curious about if i can write this code using for loop and if yes could you give me some ... |
|
bwdu |
General Coding Help |
2 |
1,789 |
Apr-15-2020, 07:44 PM |
|
|
Thread: lHelp! Lists
Post: lHelp! Lists
a = [(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]
lastelements = []
for i in range(len(a)):
for t in a[i]:
lastelements.append(t[1])
print(lastelements)
Guys, how can i fix this, TypeError... |
|
bwdu |
General Coding Help |
1 |
1,597 |
Apr-12-2020, 10:24 AM |
|
|
Thread: Help! Lists
Post: RE: Help! Lists
(Apr-03-2020, 06:28 PM)deanhystad Wrote: You will need a different hand for each player, and when you deal a card you need to remove it from the deck so you don't deal the same card again.Yes i gene... |
|
bwdu |
General Coding Help |
7 |
2,865 |
Apr-04-2020, 10:12 AM |
|
|
Thread: Help! Lists
Post: RE: Help! Lists
(Apr-03-2020, 12:54 PM)deanhystad Wrote: When you built the deck you did this:
deck += [card] # [card] is a listWhen you dealt the cards you did this:
h += deck[f] # deck[f] is a stringTo prevent a... |
|
bwdu |
General Coding Help |
7 |
2,865 |
Apr-03-2020, 03:07 PM |
|
|
Thread: Help! Lists
Post: Help! Lists
Hi everybody! This is my code;
import stdio
import sys
import random
SUITS = ["Clubs", "Diamonds", "Hearts", "Spades"]
RANKS = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen ", "King"... |
|
bwdu |
General Coding Help |
7 |
2,865 |
Apr-03-2020, 11:44 AM |
|
|
Thread: converting string object inside a list into an intiger
Post: converting string object inside a list into an int...
Hi guys!
import sys
a = sys.argv
a.remove('C:\\Users\\USER\\Desktop\\app\\as4t.py')
print(a)
C:\Users\USER\Desktop\app>as4t.py 1 2 3
['1', '2', '3']
How can i make my output[1, 2, 3]? |
|
bwdu |
General Coding Help |
4 |
2,614 |
Mar-29-2020, 07:57 PM |
|
|
Thread: converting string object inside a list into an intiger
Post: converting string object inside a list into an int...
Hi,guys!
import sys
a = sys.argv
a.remove('C:\\Users\\USER\\Desktop\\app\\as4t.py')
print(a)
C:\Users\USER\Desktop\app>as4t.py 1 2 3
['1', '2', '3']
How can i make that output [1, 2, 3]? |
|
bwdu |
General Coding Help |
4 |
2,614 |
Mar-29-2020, 07:43 PM |