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 minutes ago
Customer Services Group - Operational Delivery - Administrative OfficersLast reply 2 minutes ago
Official University College London Applicant Thread for 2024Last reply 4 minutes ago
JK Rowling in ‘arrest me’ challenge over hate crime lawLast reply 6 minutes ago
What super curricular activities should I be doing??Last reply 9 minutes ago
Customer Services Group; Executive Officer (EO) - Home Office - Various RolesLast reply 10 minutes ago
Official: University of Manchester A106 2024 Entry Applicants1295
Last reply 11 minutes ago
Reading University course change after accepting offerLast reply 14 minutes ago
Designated Degree in Mathematics and PhysicsLast reply 15 minutes ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 17 minutes ago
LSE anthropology and law 2024Last reply 21 minutes ago
Can I do medicine with these gcse grades and what unis would be most likely to accept10
Last reply 22 minutes ago
Official Dental Hygiene and Therapy (Oral Health Science) 2024 Entry Thread2870
Last reply 23 minutes ago
Official UCL Offer Holders Thread for 2024 entryLast 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
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 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 5 months ago
AQA GCSE Computer Science Paper 1 (8525/1A, 1B, 1C) - 19th May 2023 [Exam Chat]Last reply 5 months ago
AQA Computer Science NEA and Computer science paper 1 questionLast 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
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 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 5 months ago
AQA GCSE Computer Science Paper 1 (8525/1A, 1B, 1C) - 19th May 2023 [Exam Chat]Last reply 5 months ago
AQA Computer Science NEA and Computer science paper 1 questionComputer 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