subject

What is the output of the following program? t = "$100 $200 $300"
print(t. count('$'))
print(t. count('s', 5))
print(t. count('$', 5, 10)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Give an example of a case where a two-way handshake to establish a connection could leave one side of the connection live while the other side does not believe there is a connection.
Answers: 1
question
Computers and Technology, 22.06.2019 00:40
Reading characters and strings from the keyboard: consider the following c++ program 1. #include 2. #include 3. using namespace std; 4. mystring1 5. 6. int main() 7. { 8. 9. string mystring1, mystring2; mychar1 10. 11. 12. char mychar1, mychar2; 13. 14. cout< < "enter a string: "; mychar2 15. 16. cin> > mystring1; // 17. cin.get(mychar1); 18. cin> > mychar2; 19. getline(cin,mystring2); mystring2 20. 21. 22. cout<
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
You know the right answer?
What is the output of the following program? t = "$100 $200 $300"
print(t. count('$'))
...
Questions
question
Chemistry, 30.01.2021 03:40
question
Mathematics, 30.01.2021 03:40
question
Biology, 30.01.2021 03:40
question
Mathematics, 30.01.2021 03:40
question
Social Studies, 30.01.2021 03:40
Questions on the website: 13722363