• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jan 20th, 2020 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. a = [['a', 'a', 'b'], ['o', 'o', 'o'], ['a', 'b', 'b'], ['a', 'a', 'b']]
2.
3. for i in range(len(a)):
4.     for j in range(len(a[i])):
5.
6.         print(a[i][j], end = ' ')
7.     print()
8.
9.
10. s = ('o', 'a', 'i')
11.
12. k = 0
13. ma = 0
14. c = 0
15. for i in range(3):
16.     for j in range(4):
17.         if a[j][i] in s:
18.             k += 1
19.
20.
21.         else:
22.             if k > ma:
23.                 ma = k
24.                 c = i
25.             k = 0
26.     if k > ma:
27.         ma = k
28.         c = i
29.     k = 0
30.
31.
32.
33. for i in range(len(a)):
34.     for j in range(len(a[i])):
35.         if j == c:
36.            a[i].remove(a[i][j])
37.
38.
39.
40.
41. print('\n\n')
42. for i in range(len(a)):
43.     for j in range(len(a[i])):
44.         print(a[i][j], end = ' ')
45.     print()
46.
47.
48.
49.
50. '''
51. for i in range(len(a)):
52.     print(a[i])
53.
54. for i in range(len(a)):
55.     for j in range(len(a[i])):
56.         if j == c:
57.            a[i].pop(j)
58.
59.
60. print(a)
61.
62. print(ma, c)
63.
64. print('\n\n')
65. for i in range(len(a)):
66.     for j in range(len(a[i])):
67.         print(a[i][j], end = ' ')
68.     print()
69.  '''
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Top