Java or Python help for a beginner

Why does this program
class Solution {

public static void main(String args[]) throws IOException
	BufferedReader br = new BufferedReader(new InputStreamReader(;
    int length,breadth,area;
    System.out.println("Enter the length and breadth of a rectangle:");
	length = Integer.parseInt(br.readLine());
    breadth = Integer.parseInt(br.readLine());
    if (length>=1 && breadth<=100 )
        area = length*breadth ;
        System.out.println("Wrong Input!!");
    // Write code here

or this python program
def areacalculation(a, b):
if a>=1 & b<=100:
area = int(a) * int(b)

a = int(input())
b = int(input())
gives an error ? I need someone who will help me ,point out my mistake

  1. Dont use ampersand(&) in python , use ‘and’ , also maintain indentation and use brackets for clarity
  2. Use scanner class in Java, it works better but it may be slower