error tag

111 questions


1 answers
105 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
71 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

2 answers
46 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

1 answers
52 views
0
I'm creating a program that adds each digit number, but I don't know how to correct the error.

You are creating a program that adds each digit number.In the first iteration of the function lot, we figure out the number of digits, and in the second iteration, when we put the number 7984 in x, fo...

2 years ago

1 answers
88 views
0
I don't understand why these errors appear. TypeError: argument of type 'int' is not iterable

Let me show you the code first.arr1 = [1,2,3,3,3,3,4,4]arr2 = []arr3 = {1:0,2:0,3:0,4:0}# 1. Add as a list to the set value arr2 except for the overlapping numbers of arr1arr2 = list(set(arr1))a = 0b ...

2 years ago

1 answers
85 views
0
Using Thread, ValueError: signal only works in main thread error

I would like to do something else while calling YouTube live chat using Thread and pythchat.def chat_get(): global ytloc ytloc=https://www.youtube.com/watch?v=GoXPbGQl-uQ print(ytloc) chat = pytchat.c...

2 years ago

1 answers
114 views
0
Error handling

answer = 20while True: try: guess = input(Enter a number bet. 1 and 100: ) If guesses > 100 or guesses < 1: # If entered out of range print(only enter a number 1 and 100) else: if answer ==...

2 years ago

1 answers
140 views
0
This is an automated email code. It's Python, it works on a laptop, and the desktop has an error. UnicodeDecodeError in gethostbyaddr

I'm getting an error on my desktop. If you know the reason, please explain.I'm only looking for this for two days, but I'm asking you a question because my learning progress is not progressing.from em...


1 answers
68 views
0
There is an error trying to set the php executable path in vcode.

I set it like that when I first installed the vscode and edited the php file, I got a message asking me to set the path, but there is an error. I'm asking you a question because I don't know even if I...

2 years ago

1 answers
93 views
0
TypeError: 'int' object is not callable error appears

defk(T, n): #rate constants if n == 1: return Kb * T / h * np.exp(-gibbs / (R * T)) elif n == 2: return Kb * T / h * np.exp(-gibbs1 / (R * T))def ktot(T, n): # Total rate constant _t = 0.0 for m in ...

« - 10 - »

© 2024 OneMinuteCode. All rights reserved.