+ 2

Program to print the last 10 characters in a string

This Is for creating a program that takes a phone number as input and outputs the number without the “+91 “ extension (FOR INDIAN NUMBERS)

12th Jan 2021, 4:15 AM
Yusuf M Hashmi
1 Answer
+ 5
Yusuf Hashmi Here it is. num = '+911234567890' len = len(num) print(num[len - 10::]) But you should try self.
12th Jan 2021, 4:22 AM
A͢J
A͢J - avatar