HOME Life Log JavaScript Python Java Winston Churchill Victor Hugo JavaScript Steve Maraboli Community Henry Wadsworth Longfellow Music Concert Charity Event Charles R. Swindoll Joyce Meyer Bono Hans Christian Andersen Web Development Plato RegExp Asynchronous Programming Regular Expression XML Nelson Mandela Music Performance Orchestra PYLUSD Performing Arts Michael Jordan Sprain Fetch API High School Events Concert DOM Parsing XMLHttpRequest Benefit Concert Music Frontend Development Basketball Barum Benefit Concert Friedrich Nietzsche PYLUSD Performing Arts Center

STRING.ZIP

A Hurdle on the Court: My Basketball Injury Journey  

created at Oct 04, 2022   1,459  
Playing basketball is one of my favorite things to do.It's a game that makes me feel free and full of energy."Success is not final,failure is not fatal: It is the courage to continue that counts." - Winston Churchill.But one day,while shooting hoops with m...
A Hurdle on the Court: My Basketball Injury Journey

Loading XML Data with JavaScript  

updated at Oct 03, 2024   1,161  
You can use JavaScript to load XML data using various methods.One common approach is to use the XMLHttpRequest object (XHR) or Fetch API to make an asynchronous HTTP request to fetch the XML data from a server.Here's a basic example using XMLHttpRequest:In...

Regular Expressions in JavaScript  

updated at Oct 03, 2024   1,335  
Regular expressions in JavaScript are a powerful tool for working with strings.They allow you to search for patterns within strings and manipulate them as needed.Here's a basic overview:Creating Regular Expressions: You can create a regular expression in J...

Python example to download webpage  

updated at May 15, 2024   266  
You might have wondered how to download a webpage using Python.It's actually quite simple! With the help of the requests library,you can easily fetch the content of any webpage and use it however you like.Let's walk through a straightforward example togeth...

Java Variables  

updated at May 15, 2024   510  
Variables are containers for storing data values.In Java,there are different types of variables,for example::String - stores text,such as "Hello".String values are surrounded by double quotes,int - stores integers (whole numbers),without decimals,such as 1...

Java Arrays  

updated at May 13, 2024   1,368  
Arrays are used to store multiple values in a single variable,instead of declaring separate variables for each value.To declare an array,define the variable type with square brackets:We have now declared a variable that holds an array of strings.To insert ...
Java Arrays

Barum Benefit Concert at PYLUSD Performing Arts Center  

updated at May 12, 2024   1,206  
Hey,music lovers! Last night was off the charts thanks to the Barum Benefit Concert at our very own PYLUSD Performing Arts Center.Let me tell you,it was one for the books."Music is a moral law.It gives soul to the universe,wings to the mind,flight to the i...
Barum Benefit Concert at PYLUSD Performing Arts Center

Java Methods  

updated at May 10, 2024   1,132  
A method is a block of code which only runs when it is called.You can pass data,known as parameters,into a method.Methods are used to perform certain actions,and they are also known as functions.Why use methods? To reuse code: define the code once,and use ...

Python Tutorials for AP Computer Science Principles, Data Projects and High School Internship  

updated at May 10, 2024   1,349  
Python is not just a programming language; it’s a gateway to opportunities in technology.Recognized for its versatility and ease of use,Python has become a staple in data analytics and machine learning,fields that are critical to the tech industry.Many te...

Python String Operations  

updated at May 10, 2024   119  
You can return a range of characters by using the slice syntax.Specify the start index and the end index,separated by a colon,to return a part of the string.Slice From the Start.By leaving out the start index,the range will start at the first character:Sli...

Python Variables  

updated at May 10, 2024   700  
Variables are containers for storing data values.Creating Variables.Python has no command for declaring a variable.A variable is created the moment you first assign a value to it.Variables do not need to be declared with any particular type,and can even ch...

Python Data Types  

updated at May 10, 2024   798  
In programming,data type is an important concept.Variables can store data of different types,and different types can do different things.Python has the following data types built-in by default,in these categories:Text Type:str.Numeric Types:int,float,compl...

Python Comments  

updated at May 10, 2024   1,219  
Comments can be used to explain Python code.Comments can be used to make the code more readable.Comments can be used to prevent execution when testing code.Creating a Comment.Comments starts with a #,and Python will ignore them:Comments can be placed at th...

Python While Loops/For Loops  

updated at May 09, 2024   655  
The while Loop.With the while loop we can execute a set of statements as long as a condition is true.The while loop requires relevant variables to be ready,in this example we need to define an indexing variable,i,which we set to 1. .The break Statement.Wit...
Python While Loops/For Loops

Python Functions  

updated at May 09, 2024   741  
A function is a block of code which only runs when it is called.You can pass data,known as parameters,into a function.A function can return data as a result.Creating a Function.In Python a function is defined using the def keyword: .Calling a Function.To c...
Python Functions

Python Classes/Objects  

updated at May 09, 2024   596  
Python is object-oriented.In Python,most things are objects with properties and methods.Class is an object constructor or "blueprint" for creating objects.Create a Class.To create a class,use the keyword class: .Create Object.Now we can use the class named...

Python Iterators  

updated at May 09, 2024   725  
An iterator is an object that contains a countable number of values.An iterator is an object that can be iterated upon,meaning that you can traverse through all the values.Technically,in Python,an iterator is an object which implements the iterator protoco...

Python Polymorphism  

updated at May 09, 2024   749  
The word "polymorphism" means "many forms",and in programming it refers to methods / functions / operators with the same name that can be executed on many objects or classes.Function Polymorphism.An example of a Python function that can be used on differen...

RegExp example in Python to exclude javascript from HTML code  

created at Mar 22, 2024   1,134  
To exclude JavaScript from HTML code using Python, you can use regular expressions (re module) to remove all tags and their contents. Here's a simple Python function to achieve this:This function exclude_javascript() takes an HTML code string as input and ...

Printing string n times  

created at Jun 14, 2023   38  
In Python, you don't need to repeat commands / functions to print a string. You can simply implement it like:

String concatenation by join()  

created at Jun 14, 2023   31  
Write the code for a Python function expand(x) that takes a list of strings, concatenates them, and returns the resulting string repeated three times.Input: ['string1', 'string2']Output: 'string1string2string1string2string1string2'