Posts

Showing posts from June, 2024

Data Science class 009&010

 Files 1) what are functions, arguments , command line arguments, files, read,write,=>  count number of words in a line . Arguments def word_count(text# Split the text into a list of words using whitespace as delimiter     words = text.split() # Return the length of the     list (number of words)      return len(words) # Example usage text = "This is a sample text string to count the number of words." word_count = word_count(text) print(f"The text contains {word_count} words.")

Sample output1 Healthcare IoT -Data Science

Image
     

Sample Output for Healthcare IoT

Image
  Layout'---- <! DOCTYPE html > < html lang = " en " > < head > < meta charset = " UTF-8 " > < meta name = " viewport " content = " width=device-width, initial-scale=1.0 " > < title > Health Monitor </ title > < style > body { font-family : Arial , sans-serif ; line-height : 1.6 ; margin : 0 ; padding : 20 px ; background-color : #f4f4f4 ; } .container { max-width : 1000 px ; margin : auto ; overflow : hidden ; padding : 0 20 px ; } h1 { text-align : center ; color : #333 ; } .grid { display : grid ; grid-template-columns : repeat ( auto-fit , minmax ( 200 px , 1 fr ) ) ; gap : 20 px ; padding ...