fix step 2, finish step 3
This commit is contained in:
1 parent
d6115844f2
commit
90cf967701
3 files changed
+84
-68
No files matched your search
+15
-3
@@ -1,5 +1,17 @@
|
||||
test_string = "XAT--12C-S"
|
||||
# test_string = "XAT--12C-S"
|
||||
|
||||
print(bool([i for i in ["XAT--12A-S", "XAT--12B-S"] if(i in test_string)]))
|
||||
# print(bool([i for i in ["XAT--12A-S", "XAT--12B-S"] if(i in test_string)]))
|
||||
|
||||
print(test_string[len(test_string)-1])
|
||||
# print(test_string[len(test_string)-1])
|
||||
|
||||
myFirstDict = {
|
||||
"den": {},
|
||||
"ten": {},
|
||||
"ben": {}
|
||||
}
|
||||
|
||||
query = "ten"
|
||||
|
||||
if query in myFirstDict: print(True)
|
||||
|
||||
for i in range(10): print(i)
|
||||
Reference in new issue
Block a user