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
Answer:
Option d is the correct answer for the above question.
Explanation:
- The first loop of the program has a second loop and then the statement. In this scenario, the second loop executes for the value of the first loop and the statement executes for the value of the second loop.
- The first loop executes 4 times, Then the second loop or inner loop executes n times for the n iteration of the first loop, for example, 1 time for the first iteration of the first loop, 2 times for the second iteration of the first loop and so on.
- Then the inner loop executes (1+2+3+4) iteration which gives the result 10 iterations.
- The sum initial value is 0 and the "sum++", increase the value of the sum by 1.
- So the value of the sum becomes 10 after completing 10 iterations of the inner for loop.
- Hence the 10 will be the output. So the Option d is the correct answer while the other is not.
Numeric Keypad is the answer
Answer: Between Layers 2 and 3
Explanation:
In between Layer 2 and Layer 3 the MPLS header is present and is known as Shim header. It is also said to be in 2.5.
If a headset plugged into computer is not working properly than one can go for updating the device driver. The correct option is B.
<h3>What is a device driver?</h3>
A device driver is a type of software application that allows one hardware device (such as a computer) to communicate with another hardware device (such as a printer). A device driver is indeed referred to as a software driver.
A driver, also known as a device driver, is a collection of files that instructs a piece of hardware on how to operate by communicating with a computer's operating system.
Every piece of hardware, from internal computer components like your graphics card to external peripherals like a printer, requires a driver.
If a headset plugged into a computer is not working properly, the device driver can be updated.
Thus, the correct option is B.
For more details regarding device driver, visit:
brainly.com/question/14054807
#SPJ12