or tag

453 questions


1 answers
47 views
0

1 answers
98 views
0
Double for statement

Please tell me how to write a code that allows a pentagon to come out upside down by taking a double for moon *

c for
2 years ago

1 answers
139 views
0
C language: I want to make sure that if the result is duplicated, it is only the minimum box

It is a problem to put 12~17kg of sugar in boxes of 3KG and 5KG so that the weight of the box is minimal without leaving any weight. I want to make it so that if it comes out in duplicate in the code ...

2 years ago

1 answers
102 views
0
Python : TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

You need to create a program that outputs the number of approximate numbers and prime numbers of integers from 2 to n by receiving more than 2 integers, but it gets blocked at the output part.def read...

2 years ago

1 answers
79 views
0
Python prime superposition for statement question

You want to take an integer n and add a decimal number to the list L that is greater than n*2, but if you enter 16 in n, you only run up to 17 and not more. What I want is to turn from 17 to 31 and ad...

2 years ago

1 answers
85 views
0
Limit on the list? Is there something like that?

Hello, this is my first time to analyze data since I entered Python.I wrote the code with the same goal as the code below, but the problem only progresses to 10 in the For MoonThere's been an error af...

2 years ago

1 answers
152 views
0
Find the mean of the numbers in the list (using for statements)

You want to average the prices in the fruit list!I even extracted the price from the listI think I can use the sum, but it's stuck.fruit = [Apple, 1020] [Orange, 880] [Grape, 3160]sum=0for i in fruit:...

2 years ago

1 answers
67 views
0
Python unindent does not match any outer indentation level error.

import random as rd class Vocabulary: def __init__(self, wdict): self.words = wdict.copy() self.untrained = set(self.words) self.renew() def renew(self): self.target = list(se...

2 years ago

1 answers
102 views
0
Java programming constructor overloading

Book(){}Book(String title, String author) { this.title = title; this.author = author;}Is it overloaded if I do this?


2 answers
43 views
0
Python error: NameError: name 'new' is not defined

class S(Car): def __init__(self,type_=): self.maxfuel = 60 self.fueleconomy = 10 if (type_ == new): self.type_ = new elif (type_ == old): self.type_ = old else: print(Choose only one of the ne...

2 years ago
« - 41 - »

© 2024 OneMinuteCode. All rights reserved.