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
Official University College London Applicant Thread for 2024Last reply 1 minute ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 1 minute ago
JK Rowling in ‘arrest me’ challenge over hate crime lawLast reply 1 minute ago
AQA A Level History Paper 2 (7042/2A-2T) - 7th June 2024 [Exam Chat]Last reply 1 minute ago
Official University of Edinburgh Offer Holders Thread for 2024 entryLast reply 2 minutes ago
Official LSE Offer Holders Thread for 2024 entryLast reply 2 minutes ago
Official UCL Offer Holders Thread for 2024 entryLast reply 3 minutes ago
Is research for literature review classed as secondary data research?Last reply 3 minutes ago
Contextual offer due to circumstances but only if make firm not insurance ?Last reply 5 minutes ago
Whats beter revising a whole topic for 1 subject or 2 lessons for 2 subjects A levelPosted 6 minutes ago
GCSE geography case studies CIE -urgent help neededLast reply 6 minutes ago
Online MSc Computer Science with Data Analytics at University of York1715
Last reply 7 minutes ago
Official Veterinary Medicine Applicants thread 2024 entryLast reply 10 minutes ago
Official: University of Leicester A100 2024 Entry ApplicantsLast reply 15 minutes ago
TSR Study Together - STEM vs Humanities - Tenth SessionLast reply 23 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 23 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