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 2 days ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 4 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks 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 1 month 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 2 days ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 4 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks 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 1 month 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]Writing a computer science personal statement: expert advice from universities
Open day questions: computer science students
Computer science degree personal statement example (2l) with review and advice
Computer science degree personal statement example (1z) with philosophy, Oxford offer, international applicant