Check out the arduino project hub to get an idea of some the types of projects you can make with arduino:
https://create.arduino.cc/projecthub Robot?
Download arduino software or run off the cloud.
1. Blink
Examples/Simple/Blink
1. Button
https://create.arduino.cc/editor/cliona/dda4fabb-2797-4e5d-ad1d-8f733562dee1/preview
this includes a debounce:
Pushbuttons often generate spurious open/close transitions when pressed, due to mechanical and physical issues: these transitions may be read as multiple presses in a very short time fooling the program. This example demonstrates how to debounce an input, which means checking twice in a short period of time to make sure the pushbutton is definitely pressed. Without debouncing, pressing the button once may cause unpredictable results. This sketch uses the built in millis() function which keep track of the time passed since the the sketch was run and by extension since button was pressed to stabilize the output .https://www.arduino.cc/en/Tutorial/Debounce
2. Tilt switch - tilt switch code from
https://create.arduino.cc/editor/cliona/d4ab61d8-d62c-4e8e-80a4-7fc564976a42/preview
& sweep https://create.arduino.cc/example/library/servo_1_1_3/servo_1_1_3%5Cexamples%5CSweep/Sweep/preview
6. Button on off servo