Class 11 Computer Science Sumita Arora Pdf (FAST ⟶)

comment = "This movie is amazing! #bollywood" if len(comment) > 280: print("Trim your review") if "#" in comment: print("Hashtag detected") Concept from Sumita Arora: List creation, indexing, append, remove, sorting.

movie_ratings["Fighter"] = 7.2 # new release print(movie_ratings) Concept from Sumita Arora: if-elif-else , for and while loops. class 11 computer science sumita arora pdf

movie_ratings = "Inception": 9.0, "Barbie": 7.5, "Oppenheimer": 8.8 comment = "This movie is amazing

time = 21 # 9 PM mood = "tired" if time > 20 or mood == "tired": print("Switch on Netflix and dim lights") Concept from Sumita Arora: String indexing, slicing, len() , upper() , find() , isalpha() . movie_ratings = "Inception": 9

playlist = ["Song A", "Song B", "Song C"] playlist.append("Song D") # user adds a track playlist.remove("Song B") # skip a track print("Now playing:", playlist[0]) Concept from Sumita Arora: Key-value pairs, adding/updating items.

age = 16 if age < 18: print("Suggest 'U/A 13+' content only") else: print("Show all movies including adult") Concept from Sumita Arora: Cybercrime, passwords, phishing, privacy.