Tool: Gemini, web app, Google Workspace account; temporary chat; mode menu Thinking (default); the reply's code was opened with its Show code button before reading Saved at: 2026-10-19T20:27:17Z --- Prompt --- How many words are in the text below? Count words as sequences of characters separated by spaces. Give the number. Starting next month, the office will move to a new booking system for meeting rooms. The old spreadsheet will stay available until the end of the quarter, but new bookings should go through the system from the first working day of the month. Each team has a room coordinator who can help with questions and who will receive a short training session next week. Rooms on the third floor can be booked for up to four hours at a time, while the large room on the ground floor needs approval from the facilities team when a booking lasts longer than two hours. Please cancel a booking as soon as you know that you will not need the room, so that colleagues can use it. If a room is booked but nobody arrives within fifteen minutes, the system will release it automatically and send a short message to the person who made the booking. Video equipment is available in every room, and the facilities team checks it every Monday morning. If something does not work, report it through the help desk form rather than by email, because the form goes straight to the person on duty. We will review the new process after three months and ask for feedback from every team. Until then, thank you for your patience while everyone gets used to the change. --- Reply, as read from the page --- Hide code Gemini said Python text = """Starting next month, the office will move to a new booking system for meeting rooms. The old spreadsheet will stay available until the end of the quarter, but new bookings should go through the system from the first working day of the month. Each team has a room coordinator who can help with questions and who will receive a short training session next week. Rooms on the third floor can be booked for up to four hours at a time, while the large room on the ground floor needs approval from the facilities team when a booking lasts longer than two hours. Please cancel a booking as soon as you know that you will not need the room, so that colleagues can use it. If a room is booked but nobody arrives within fifteen minutes, the system will release it automatically and send a short message to the person who made the booking. Video equipment is available in every room, and the facilities team checks it every Monday morning. If something does not work, report it through the help desk form rather than by email, because the form goes straight to the person on duty. We will review the new process after three months and ask for feedback from every team. Until then, thank you for your patience while everyone gets used to the change.""" words = text.split() print("Count with split():", len(words)) words_by_space = text.split(' ') print("Count with split(' '):", len(words_by_space)) Code output Count with split(): 225 Count with split(' '): 225 Python import re # Check for newline characters or multiple spaces: print(r"Any ?", ' ' in text) # The text provided in the prompt is a single continuous paragraph or contains regular spaces. print("Total words:", len(text.split())) Code output Any ? False Total words: 225 225