1. Engineering
  2. Computer Science
  3. try writing a getdigitnumi function that takes in an integer...

Question: try writing a getdigitnumi function that takes in an integer...

Question details

Try writing a get_digit(num,i) function that takes in an integer number num and an index integer i, and returns the i_th digit of num. You can use either mod or string slicing for this. > SEE MINI_EX1 SOLUTION FOR SAME CODE WITHOUT A FUNCTION MODIFY IT TO BE A FUNCTION

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution