Spyder Write Python Program Script Variable Num Set Value 35607 Program Display Last Secon Q43864639
In Spyder, write a Python program (script) that has a variablenum that is set to the value 35607. Your program is to display thelast and second-last digit of the value stored in num. For example,when num contains the value 35607, your program should print thelast digit of 35607 is 7 and the second last digit of 35607 is 0respectively.
Your program should be able to work with whatever number isstored in the variable num. Test your program with num=35607 andnum=6198.
Expert Answer
Answer to In Spyder, write a Python program (script) that has a variable num that is set to the value 35607. Your program is to di…
OR