error tag

111 questions


2 answers
49 views
0
Python Basics: Type Error

def open_account(): print(A new account has been created.)def deposit(balance, money): print(Deposit Completed The balance is KRW {0}.format(balance + money)) return balance + moneydef withdraw(balanc...

2 years ago

1 answers
44 views
0
cannot assign to lieteral

if not crash: for i in range(lane_count): pygame.draw.rect(screen, WHITE, [lanes[i][1], lane_width, lane_height]) lanes[i][1] += 10 if lanes[i][1] > WINDOW_HEIGHT: lanes[i][1] = -40 = lane_he...

2 years ago

1 answers
48 views
0
The Python invalid sync error appears.

draw_score() pygame.display.flip() else: draw_main_menu()An error appears in else: part of this part.

2 years ago

1 answers
127 views
0
get_loc keyerror occurred during coding for networkx use

for connection_id, connection in connections.iterrows(): station1_name = stations.loc[connection['station1']]['name'] station2_name = stations.loc[connection['station2']]['name'] graph.add_edge(statio...

2 years ago

1 answers
109 views
0
Python folium, geojson, csv questions. UnicodeDecodeError: 'cp949' codec can't decode

Below is the code that I made. #-*- coding: utf-8 -*-import foliumfrom folium import pluginsimport pandas as pdimport jsonimport geojsoncountry_data='row_deal_s.csv'df = pd.read_csv('row_deal_s.csv')d...


1 answers
51 views
0
Why is it only executed once the repeat is turned?

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h>int main(void) { int num1; int num2; printf(Enter integer 1 : ); int a = scanf(%d, &num1); printf(Enter integer 2 : ); int b = scanf(%d, &am...

2 years ago

1 answers
117 views
0
I don't know the cause of Python TypeError. (scipy.optimize)

def func_y(x, a): return (1 + a) * x / (a + x) #TypeError: can't multiply sequence by non-int of type 'float'a = 0.0462x = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]y = func_y(x, a)popt, pcov ...

2 years ago

1 answers
90 views
0
Python split related error

def cal(a,b): print(a,'+',b,'=',a+b) print(a,'-',b,'=',a-b) print(a,'*',b,'=',a*b) print(a,'/',b,'=',a/b)n=int (input ('two integer inputs:')).spilt()cal(n)If you create a function like this and enter...

2 years ago

1 answers
116 views
0
Is there an error?

I don't understand the error, so I'm asking you a question


1 answers
49 views
0
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.