firstly we have to initialize the variable, means to give variable a value and then print the statement
string = "fahadisahadam"
print(string[:3]+"..."+string[-3:])
string is a data type that contains two or more characters.
means the string is fahadisahadam so the print will print first three characters. follow by three periods(...) and then last three characters.
The output will be:
fah...dam