UNO vs nano

what are the differences between uno and nano? can we use the same program in those boards? P.S: i am a beginner. Thanks in advance!

Difference? The mostly size. Both have the same micro controller and can run the same programs.

See:
Arduino Uno
Arduino Nano

Nano supports 2 more analog inputs, A6 & A7.
Uno regulator can support more current at 5V. (up to 800mA vs 500mA, 7.5V source recommended to have a chance of getting anywhere near that much without overheating)
Uno has a 150mA 3.3V regulator, Nano does not.
Uno buffers the SCK pin with an opamp to drive the L LED, Nano does not (presents more load to external devices that need to drive D13 HIGH, perhaps 6-8mA).
Uno uses 16U2 for USB/Serial, which can be reprogrammed. Nano uses FT232, which can not be programmed.
Connector differences: barrel jack, USB connector, IO headers

thank you very much septillion and CrossRoads!