fred = ['a', 'b', 'c', 'd']
barney = ''.join(fred)
print(barney)
wilma = "python"
betty = list(wilma)
print(betty)
word = "python"
masked = []
print("word is", word)
for letter in word:
if letter is 't' or letter is 'o':
masked.append(letter)
else:
masked.append('-')
output = ''.join(masked)
print(output)
Last reply 1 minute ago
Haven't heard back from LSELast reply 1 minute ago
Official Cambridge Postgraduate Applicants 2024 ThreadLast reply 2 minutes ago
LSE Economics L100 2024 EntryLast reply 2 minutes ago
Arm Software Engineer Level 6 Degree Apprenticeship 2024 - DTS BScLast reply 4 minutes ago
Goldmansachs Degree Apprenticeship 2024Last reply 4 minutes ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 6 minutes ago
LSE accommodation Q and ALast reply 7 minutes ago
Government Social Research - Research Officer Scheme 2024Posted 9 minutes ago
Is the course 'Mathematics and It's Learning' with the OU ELQ exempt?Last reply 9 minutes ago
Official UCL Offer Holders Thread for 2024 entryLast reply 9 minutes ago
SIP civil service 2024 threadLast reply 12 minutes ago
DWP EO Job Centre Work Coach - March 2024Last reply 13 minutes ago
emmanuella's study discussions #2: taking breaksLast reply 13 minutes ago
Economics at Edinburgh vs Manchester vs LSE (Ispp & E) for IBPosted 15 minutes ago
IELTS Certificate types for Warwick and LSE ApplicationLast reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 2 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 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 2 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 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 question