![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 18.10.2019 11:30 ayoismeisalex
Assign true to the variable has_dups if the string s1 has any duplicate character (that is if any character appears more than once) and false otherwise.
here is the answer i wrote:
i = []
for i in range(len([s1])):
if s1.count(s1[i]) > 1:
has_dups = true
elif s1.count(s1[i]) = 1:
has_dups = false
here is the message i got from the system:
solutions with your approach don't usually use: elif
me to correct it.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:00
If you add the following to the query grid in an access query, what is it called? salestaxamt: [salestaxrate]*[totalsale] formula calculated field total calculation
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
Answers: 3
You know the right answer?
Assign true to the variable has_dups if the string s1 has any duplicate character (that is if any ch...
Questions
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 08.06.2020 18:57
![question](/tpl/images/cats/geografiya.png)
Geography, 08.06.2020 18:57
![question](/tpl/images/cats/mir.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 08.06.2020 18:57
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.06.2020 18:57