Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
import time devices_collection = {"iphone", "android", "radio", "tv", "tablet", "pc", "laptop"} device_name = input("Enter the device name: ") start_time = time.perf_counter() result = f"{device_name} is in the list." if device_name in devices_collection else f"{device_name} is not in the list." end_time = time.perf_counter() time_taken = end_time - start_time print(result) print(f"Time taken: {time_taken:.6f} seconds")
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)