Spoiler
Scroll to see replies
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
def pattern_sum(k, m):
return sum([int(str(k) * a) for a in range(1, m + 1)])
def unique_common(a, b):
return sorted(list(set(a).intersection(set(b)))) or None
def case_insensitive_palindrome(s):
return s.lower() == s.lower()[::-1]
def strip_whitespace(s):
return reduce(lambda x, y: x + y, [x])
def count_first_letter(s, c):
return len([word for word in s.split(' ') if word[0] == c])
.def cons(str1):
str1 = str1.replace(" ", "").lower()
print str1
a = ["a", "e", "i", "o", "u"]
count = 0
for i in str1:
if i in a:
continue
count += 1
return count
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Last reply 1 minute ago
amazon apprenticeship Buying and MerchandisingLast reply 3 minutes ago
Interview invitation for GAP medicine course at Glasgow University in 2022Last reply 6 minutes ago
LSE politics and Economics 2023/2024Last reply 6 minutes ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 7 minutes ago
LSE International Social and Public Policy and Economics (LLK1) 2024 ThreadLast reply 8 minutes ago
What happens if i dont manage to find housing for second yr?- Uni of BathLast reply 9 minutes ago
Biology - myocardial infarctionLast reply 17 minutes ago
Official University of Bristol Offer Holders Thread for 2024 entryLast reply 18 minutes ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 18 minutes ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 1 day ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 18 minutes ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 1 day ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Computer science degree personal statement example (2l) with review and advice
Computer science degree personal statement example (1z) with philosophy, Oxford offer, international applicant
Computer science degree personal statement example (1r) Btec, King's College offer
Computer science degree personal statement example (1b) with review and advice