im realy new on python(started today) and i want to know how to write this script in python
#!/bin/bash
function press_enter
{
echo ""
echo -n "Press Enter to continue"
read
clear
}
selection=
until [ "$selection" = "0" ]; do
echo ""
echo "PROGRAM MENU"
echo "1 - open xmms"
echo "2 - open emacs"
echo "3 - open gparted"
echo "4 - open gedit"
echo "5 - open firefox"
echo "6 - open gaim"
echo "7 - open kopete"
echo "8 - open console"
echo "0 - exit program"
echo ""
echo -n "Enter selection: "
read selection
echo ""
case $selection in
1 ) xmms ; press_enter ;;
2 ) emacs ; press_enter ;;
3 ) sudo gparted ; press_enter ;;
4 ) gedit ; press_enter ;;
5 ) firefox ; press_enter ;;
6 ) gaim ; press_enter ;;
7 ) kopete ; press_enter ;;
8 ) konsole ; press_enter ;;
0 ) echo -n "are you sure you want to exit program? (y/n) >"
read response
if test $response = y ; then
echo "exiting program"
exit 0
else
echo
if test $response = n ; then
press_enter
sh my_first_menu
fi
fi;;
* ) echo please select valid number you idiot ; press_enter ;;
esac
done