This course explains the origin of optical and electrical properties of semiconductors. The course elaborates how they change when the semiconductors are reduced to sizes of few nanometers. The course provides also the basis to use software to calculate the properties of hetero/nanostructures.