syntax-error tag

9 questions


2 answers
272 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...

1 years ago

1 answers
92 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...

1 years ago

1 answers
119 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...

1 years ago

1 answers
71 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
103 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ㅠㅠ

1 years ago

1 answers
61 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
52 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...

1 years ago

1 answers
143 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
120 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...

1 years ago

© 2024 OneMinuteCode. All rights reserved.