Most voted "syntax" questions
Syntax is the set of rules that defines how the different symbols of a language (natural or programming) can combine validly.
Learn more…268 questions
Sort by count of
-
-1
votes1
answer100
viewsSyntax error in a beast program in Python
modo = int(input("Selecionar modo de jogo: ")) if modo == 1 print("deu 1") if modo == 2 print("deu 2") I just wanted to test if the user, when typing 2 the program prints 2 and the same pro 1, but…
-
-1
votes1
answer71
viewsSQL group records by time
I have a table in Mysql that stores events by time with the following structure: id / num_veh / time I would like to create an SQL query that returns events in groups by time range . For example:…
-
-1
votes1
answer280
viewsSyntax error in mathematical equation (pyflakes E)
The code below, written in python, has syntax error in the equation Ff. I searched for problems related to closing the parentheses, rewrote the equation and still get the error message. While…
-
-1
votes1
answer81
viewsMeaning of signs in C#
What are the signs < >, [ ], { }, ( ) playing games in Unity?
-
-1
votes1
answer216
viewsInvalid syntax in Python, what’s wrong or missing?
print('{:=^40}'.format(' SIMULADOR DE JUROS COMPOSTOS ')) print(''' ESCOLHA A OPÇÃO [1] Para Juros [2] Para Capital [3] Para Taxa [4] Para Tempo''') opção = int(input('Qual a…
-
-1
votes1
answer62
viewsError of expression "if"
My code is giving this error in the first expression se: "The expression was not started correctly. Enter the character '(' to fix the problem" real m1, m2, m3 escreva("\n Digite o peso da primeira…
-
-1
votes1
answer31
viewsproblem with scope declaration
I am trying to make a code in which there must be the following data: age (in years), weight (in kg) and monthly income. and to calculate the average wage and percentage of people over 45 years of…
-
-2
votes1
answer791
viewserror expected Primary-Expression before ' ' token
Error on line 21. #ifndef __STRING_H__ #define __STRING_H__ #pragma warning(disable: 4786) #include <string> #include <vector> const int MAX_RESP = 4; typedef…
-
-2
votes1
answer451
viewsSQL command in MYSQL
I’m creating a DBA and I need to make one CHECK on an index of my table produto, but I’m using Mysql and I’m having a problem with the syntax. Follow the example: CREATE TABLE produto( Cod_produto…
-
-2
votes1
answer25
viewsdisplay array result within phpmailer message
Good evening folks, I need to display the results of an array in a message body phpmailer, so send the same by email. My sending code is working and I have done several tests, the email arrives…
-
-3
votes2
answers65
viewsSyntax invalidates 2 degree equation
The error is in the last Else and I can’t identify, I know it’s a basic mistake. follows below the code: A = float(input("Qual o valor de A: ")) if A == 0: print("Sua equação não é do 2 grau") else:…
-
-3
votes1
answer71
views -
-3
votes1
answer38
viewsI am not able to solve this error of syntax,
class Sale < ApplicationRecord belongs_to :client belongs_to :user belongs_to :discount has_many :product_quantities has_one :comission after_save do calc = 0 # Soma o preço dos produtos vezes a…
-
-4
votes2
answers346
viewsError: Parse error: syntax error, Unexpected '}'
The code with problem does the following: It is part of a password reset system that I am creating, but when placing it inside an ECHO I got some problems that I was able to solve but this I see no…
-
-4
votes2
answers281
viewsWhat is the correct syntax to use C# object orientation using . NET Core?
I have to familiarize myself with the implementation of object-oriented code in C#development. However, the materials I’m learning assume that I have Windows environment and Visual Studio installed…
-
-4
votes2
answers60
viewsWhere are the syntax errors?
I’m new to Python and the teacher is going through his classes too fast. Although it is ridiculous, I am in doubt what is wrong in the code below. I believe that the (basic) logic is not very wrong,…
-
-5
votes1
answer54
viewsSelection structure, use of the for
I need to select animals older than (60 months), and return their consumption and monthly production, as I tried to idealize in the equations. However, it does not return any number correctly.…
-
-5
votes3
answers375
viewsWhat does [] mean after a variable?
I wonder what that is, when a variable gets that []: let teste; teste[id]