+ 1

how i use & function on lists

do i need to import somthing because print(a&b) dont work

11th Sep 2016, 2:23 PM
Tal Kenigs
Tal Kenigs - avatar
6 ответов
+ 1
Sorry I don't know how to do that with lists. You may want to check the chapter on sets or regular expressions maybe that helps
11th Sep 2016, 2:35 PM
Niko Schwenzer
Niko Schwenzer - avatar
0
print([a, b]) Or print(str(a)+str(b))
11th Sep 2016, 2:28 PM
Niko Schwenzer
Niko Schwenzer - avatar
0
Like what exactly do you want to do?
11th Sep 2016, 2:29 PM
Niko Schwenzer
Niko Schwenzer - avatar
0
i remeber there was alot of options like the objects that were not in both list or object that in both lost in what class i find it?
11th Sep 2016, 2:32 PM
Tal Kenigs
Tal Kenigs - avatar
0
sets that what i meant thank you!
11th Sep 2016, 3:06 PM
Tal Kenigs
Tal Kenigs - avatar
- 1
first you have to declare a function and then function calling should be done in order to invoke the function
12th Sep 2016, 5:18 PM
manonmani.m