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 6 minutes ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 7 minutes ago
Can a law graduate at SOAS apply to MSc Politics and International Relations at soas?Posted 10 minutes ago
SQA Higher Computing Studies - 20th May 2024 [Exam Chat]Last reply 11 minutes ago
A-level English Literature Study Group 2023-2024Last reply 13 minutes ago
Edexcel A-Level Geography Paper 3 | [12th June 2023] Exam ChatLast reply 21 minutes ago
Weidenfeld Hoffmann Trust (WHT) Scholarship Notification (2024-2025)Last reply 30 minutes ago
Dilemma between university of liverpool and university of bath?Last reply 32 minutes ago
LSE Economic history departmentLast reply 35 minutes ago
The Official Royal Holloway Applicants for 2024 Entry ThreadLast reply 35 minutes ago
If the Russell Group was now a fair representation of what it still claims to beLast reply 37 minutes ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 21 hours 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 37 minutes ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 21 hours 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