Given this code:
from datetime import datetime
Time = datetime.now()
print(Time)
How could I print just the last digit? eg.
2013-02-08 15:13:32.150263 prints 3
2013-02-08 15:17:40.759672 prints 2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
print str(Time)[-1]would do the trick…