Any code to turn on and turn off 10 Led's Individually

for my science fair, I want to build a house in scale, and I want to do it with Arduino for the electric things, my home have 10 Led’s and I want to turn on each one with a command for Serial Monitor, I have checked many pages on the internet I can’t find any code to turn on and turn off Led’s Individually and I don’t know how to program the code very well, I have one code that I had downloaded from the internet but it isn’t correct.

void setup ()
{
Serial.begin (9600);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
pinMode(13,OUTPUT);
}
void loop ()
{
if(char data=Serial.read ())
{
switch (data)
{
case ‘A’:
{
digitalWrite(4,HIGH);
Serial.println(“Led on”);
break;
}
case ‘B’:
{
digitalWrite(4,LOW);
Serial.println(“Led off”);
break;
}
case ‘C’:
{
digitalWrite(5,HIGH);
Serial.println(“Led on”);
break;
}
case ‘D’:
{
digitalWrite(5,LOW);
Serial.println(“Led off”);
break;
}
case ‘E’:
{
digitalWrite(6,HIGH);
Serial.println(“Led on”);
break;
}
case ‘F’:
{
digitalWrite(6,LOW);
Serial.println(“Led off”);
break;
}
case ‘G’:
{
digitalWrite(7,HIGH);
Serial.println(“Led on”);
break;
}
case ‘H’:
{
digitalWrite(7,LOW);
Serial.println(“Led off”);
break;
}
case ‘I’:
{
digitalWrite(8,HIGH);
Serial.println(“Led on”);
break;
}
case ‘J’:
{
digitalWrite(8,LOW);
Serial.println(“Led off”);
break;
}
case ‘K’:
{
digitalWrite(9,HIGH);
Serial.println(“Led on”);
break;
}
case ‘L’:
{
digitalWrite(9,LOW);
Serial.println(“Led off”);
break;
}
case ‘M’:
{
digitalWrite(10,HIGH);
Serial.println(“Led on”);
break;
}
case ‘N’:
{
digitalWrite(10,LOW);
Serial.println(“Led off”);
break;
}
case ‘O’:
{
digitalWrite(11,HIGH);
Serial.println(“Led on”);
break;
}
case ‘P’:
{
digitalWrite(11,LOW);
Serial.println(“Led off”);
break;
}
case ‘Q’:
{
digitalWrite (12,HIGH);
Serial.println (“Led on”);
break;
}
case ‘R’:
{
digitalWrite (12, LOW);
Serial.println (“Led off”);
break;
}
case ‘S’:
{
digitalWrite (13,HIGH);
Serial.println (“Led on”);
break;
}
case ‘T’:
{
digitalWrite (13, LOW);
Serial.println (“Led off”);
break;
}

}
}

What is wrong with the code?

Read data only when there is data to read. Study this: https://www.arduino.cc/en/Serial/read

.

const byte ledPins[] = { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
const byte leds = sizeof(ledPins);

void setup() {
  Serial.begin(250000);
  for (byte i = 0; i < leds; i++) {
    pinMode(ledPins[i], OUTPUT);
  }
  Serial.println(F("Single char led switching"));
  Serial.print(F("letters 'A' to '"));
  Serial.write('A' + leds - 1);
  Serial.println(F("' switch the leds ON"));
  Serial.print(F("letters 'A' to '"));
  Serial.write('a' + leds - 1);
  Serial.println(F("' switch the leds OFF"));
  Serial.println(F("'?' reports all led states"));
}

void loop() {
  // if there is something
  if (Serial.available()) {
    char got = Serial.read();
    if (isupper(got) && (got < ('A' + leds))) {
      byte idx = got - 'A';
      digitalWrite(ledPins[idx], HIGH);
      printLedState(idx);
    } else if (islower(got) && (got < ('a' + leds))) {
      byte idx = got - 'a';
      digitalWrite(ledPins[idx], LOW);
      printLedState(idx);
    } else if (got == '?') {
      Serial.println(F("led states are:"));
      for (byte i = 0; i < leds; i++) {
        printLedState(i);
      }
    }
  }
}

void printLedState(byte index) {
  Serial.print(F("led "));
  Serial.print(index);
  Serial.print(F(" on pin "));
  Serial.print(ledPins[index]);
  Serial.print(F(" is "));
  Serial.println(digitalRead(ledPins[index]) ? F("ON") : F("OFF"));
}
Single char led switching
letters 'A' to 'J' switch the leds ON
letters 'A' to 'j' switch the leds OFF
'?' reports all led states

As the error says, you've got an extra closing brace in there. Try

void setup ()
{
  Serial.begin (9600);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(13, OUTPUT);
}
void loop ()
{
  if (char data = Serial.read ())
  {
    switch (data)
    {
      case 'A':
        {
          digitalWrite(4, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'B':
        {
          digitalWrite(4, LOW);
          Serial.println("Led off");
          break;
        }
      case 'C':
        {
          digitalWrite(5, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'D':
        {
          digitalWrite(5, LOW);
          Serial.println("Led off");
          break;
        }
      case 'E':
        {
          digitalWrite(6, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'F':
        {
          digitalWrite(6, LOW);
          Serial.println("Led off");
          break;
        }
      case 'G':
        {
          digitalWrite(7, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'H':
        {
          digitalWrite(7, LOW);
          Serial.println("Led off");
          break;
        }
      case 'I':
        {
          digitalWrite(8, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'J':
        {
          digitalWrite(8, LOW);
          Serial.println("Led off");
          break;
        }
      case 'K':
        {
          digitalWrite(9, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'L':
        {
          digitalWrite(9, LOW);
          Serial.println("Led off");
          break;
        }
      case 'M':
        {
          digitalWrite(10, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'N':
        {
          digitalWrite(10, LOW);
          Serial.println("Led off");
          break;
        }
      case 'O':
        {
          digitalWrite(11, HIGH);
          Serial.println("Led on");
          break;
        }
      case 'P':
        {
          digitalWrite(11, LOW);
          Serial.println("Led off");
          break;
        }
      case 'Q':
        {
          digitalWrite (12, HIGH);
          Serial.println ("Led on");
          break;
        }
      case 'R':
        {
          digitalWrite (12, LOW);
          Serial.println ("Led off");
          break;
        }
      case 'S':
        {
          digitalWrite (13, HIGH);
          Serial.println ("Led on");
          break;
        }
      case 'T':
        {
          digitalWrite (13, LOW);
          Serial.println ("Led off");
          break;
        }
    }
  }
}

This at least compiles.