syntax-error tag

9 questions


2 answers
281 views
0
Trivial expression syntax error

I am currently studying about the expression of the trinomial.year=2000val = 'It's leap year' if ((year%40) == 0) and ((year%100)!=0) or ((year%400)==0)print(val)If you type the code like this,SyntaxE...

2 years ago

1 answers
102 views
0
SyntaxError: check why invalid syntax appears

After you push the computer once and install Python,I just used print, but there's an errorWhat should I do? Should I reformat my computer?>>> print hello World File <stdin>, line 1 pri...

2 years ago

1 answers
133 views
0
Error in inf file (c2059 syntax error: constant)

I made source C with visual studio, but there is an error in the inf file that I read during the build process.(input path)\paper.inp(1):error C2059: Syntax error: 'constant'An error like this appears...

2 years ago

1 answers
83 views
0
Android sqlite int sync error

final public String CREATE_FAVORITE_SONG_TABLE_QUERY = CREATE TABLE + FAVORITE_SONG_TABLE_NAME + ( + ID INTEGER PRIMARY KEY, + favorite_id int(10), + sound_res char(30), + sound_name char(3...


1 answers
119 views
0
Why Python Grammar Errors

print(Enter the year you were born.)birth-year = int(input())age = 2017 - birth-year + 1In the second line, the birthday-year is called can't sign to operator, but I don't know whyㅠㅠ

2 years ago

1 answers
78 views
0
SyntaxError: invalid syntax // basball game is being made, but I don't know if there is a problem with the main function.

def main(): print(Play Baseball)random_number = str(get_not_duplicated_three_digit_number())print(Random Number is : , random_number)user_input = '999'while(get_strikes_or_ball(user_input, random_numb...


1 answers
65 views
0
SyntaxError: expected expression, got '}'

I'm learning JavaScript with Judati.It's a question written in a while sentence.I need to print out the following, and the code I wrote is var num = 99;while (num>=1) { console.log(num + bottles of...

2 years ago

1 answers
162 views
0
SyntaxError: invalid syntax when called after function definition

I did this, but I keep getting errors def get_generation(x): return str ((x//10)*10) + 'large'age = int(input(x))print(get_generation(age) + I see)If I type 28, I want to get 20s like this..What shoul...


1 answers
136 views
0
I am asking you a question because a SyntaxError occurred while coding related to KNN...

I am asking you a question because a SyntaxError occurred while coding related to KNN...How can I solve this problem?def compute_distance(self, X_test, dist_metric='dot'): if dist_metric=='dot': sim...

2 years ago

© 2024 OneMinuteCode. All rights reserved.