Project Name : {{this.currentFile.name}}
Your Code ...
from collections import Counter from timeit import timeit from itertools import chain mylist = list(chain(*([i] * 2 for i in range(100)), *([i] for i in range(100, 200)))) print(mylist) print(timeit('sum(1 for k, c in Counter(mylist).items() if c == 1)', number=10000, globals=globals())) print(timeit('sum(c==1 for k, c in Counter(mylist).items())', number=10000, globals=globals()))
CommandLine Arguments ...
Stdin Inputs...
Interactive mode :

Focus View:

Version :
Please Login to use this function
Share URL
CPU Time: {{this.cpuTime}} sec(s), Memory: {{this.memory}} kilobyte(s)
executed in {{this.executionTime}} sec(s)
Please enter all values - GroupID, ArtifactID and Version
Note: you can search maven artifact details in http://search.maven.org/ or http://mvnrepository.com/
Trying to save your file, Please wait...

My {{this.language}} Projects

Loading, Please wait...
File Deleted Successfully
Unable to Delete, please try again later or contact JDoodle support

Are you sure, you want to delete this file?

Recent {{this.language}} Projects

{{moment(option.executedAt).format("MMMM Do YYYY, h:mm:ss a")}}
{{this.setLanguage("python3", "3.5.1, 3.6.3, 3.6.5","jdoodle.py",false, 2)}}
{{this.setShared("", "","","jdoodle.com/a/19uT","https://www.jdoodle.com/embed/v0/19uT")}}
Your valuable inputs will help us improve this site
please give your comments. Thanks.
Which language would you like to see next in JDoodle?
Thanks for your Input!
{{this.surveyForm.comment}} is already available at {{this.surveyForm.existingPath}}
For direct response, please include your email id in the comment
or email to jdoodle@nutpan.com
Thanks for your Input!

Sign in

New to JDoodle ? -
JDoodle is trying to signin you in, Please wait...


Thanks for registering!!!
We have sent you an email for confirmation.
Before login, Please check your email to complete the registration!
Already Have an Account ? -
We recommend
or you can register with your email below
{{ message }}
JDoodle is creating an account for you, Please wait...
By registering, you agree to the Terms of Service

Forgot Password


Please check your email for password reset link.

JDoodle is checking your details, Please wait...

Unlock Account


Please check your email for unlock link.

JDoodle is checking your details, Please wait...

Change Password

Password Successfully Changed


Change Display Name


Display Name Successfully Updated

Welcome to JDoodle

app loading now, please wait...