HOME University of Illinois Urbana-Champaign Python Life Log Knowledge Base Digital/Technology JavaScript Java Python Java AI High School JavaScript Data Science Internship Coding println() break Google Meet Line by Line Deep Learning GPT continue Julia Java Arrays Static Inner Class Java While Loop Tomcat Java Methods Supervised Learning Python While Loops Java Public Functions Business Intelligence Python Slicing Strings Python Numbers Java Abstract Classes Java Servlet WEB-INF Python Syntax Java Tutorials Java Polymorphism Java Development Kit Python Applications Java For Loop Guido van Rossum List List Remove Python Escape Character Java Nested Loop Method Overloading Java SuperClass List Delete ChatGPT Connectors Java switch Python Functinos Java if Python Lists List Insert For Loop Java Classes List Sort Do While Loop Python Variable Type Java Inheritance AI Engineering Iteration Java Clasess Python Functions Clustering scikit-learn Java SubClass ChatGPT Query Example Generative Pre-trained Transformer Data Analysis Recursion Python Iterators Method Scope Python Comments

PYTHON.ZIP

Challenge: One Code Problem Per Day

Challenge: One Code Problem Per Day  

created at Oct 03, 2025   271  
There's a CS program course where we have to solve one coding problem every day.This course is really exciting.When solving the problems,bugs can appear,and although it's rare,the problems themselves might be flawed,so we communicate our opinions openly an...

Mastering Excel Data Manipulation with Python  

updated at Apr 26, 2024   6,752  
Python provides an awesme feature can access Excel spreadsheet file that based on pandas.You can use the pandas library in Python to read an Excel file and store its data into a Python array. Here's a basic example:Replace 'your_excel_file.xlsx' with the p...

Python Comparison Operators  

updated at May 10, 2024   6,793  
OperatorDescriptionExample.==,If the values of two operands are equal,then the condition becomes true.(a == b) is not true..!=,If values of two operands are not equal,then condition becomes true.(a != b) is true..If values of two operands are not equal,the...

Python Arithmetic Operators  

created at Jun 14, 2023   6,749  
OperatorDescriptionExample% ModulusDivides left hand operand by right hand operand and returns remainder20 % 10 = 0* MultiplicationMultiplies values on either side of the operator10 * 20 = 200** ExponentPerforms exponential (power) calculation on operators...

Printing string n times  

created at Jun 14, 2023   6,752  
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   6,838  
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' 

Code Chronicles - A Caffeine-Fueled Journey into Data Software Engineering

Code Chronicles - A Caffeine-Fueled Journey into Data Software Engineering  

updated at Sep 23, 2024   6,935  
Interning in Data Software Engineering was like entering a realm where coding meets caffeine-fueled euphoria.The excitement bubbled within me like an over-caffeinated potion as I delved into the world of zeros and ones.“Excitement is like caffeine for the...

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

updated at May 10, 2024   6,989  
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 Modules  

updated at May 09, 2024   6,744  
What is a Module?.Consider a module to be the same as a code library.A file containing a set of functions you want to include in your application.Create a Module.To create a module just save the code you want in a file with the file extension .py:Use a Mod...

Python Scope  

updated at May 09, 2024   6,749  
A variable is only available from inside the region it is created.This is called scope.Local Scope.A variable created inside a function belongs to the local scope of that function,and can only be used inside that function.Function Inside Function.As explai...

Python Polymorphism  

updated at May 09, 2024   6,764  
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...

Python Iterators  

updated at May 09, 2024   6,732  
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 Lambda

Python Lambda  

updated at May 09, 2024   6,774  
A lambda function is a small anonymous function.A lambda function can take any number of arguments,but can only have one expression.Syntax.The expression is executed and the result is returned:Lambda functions can take any number of arguments:Summarize arg...

Python Inheritance  

updated at May 09, 2024   6,814  
Inheritance allows us to define a class that inherits all the methods and properties from another class.Parent class is the class being inherited from,also called base class.Child class is the class that inherits from another class,also called derived clas...

Python Classes/Objects  

updated at May 09, 2024   6,927  
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 Arrays  

updated at May 09, 2024   6,736  
Arrays are used to store multiple values in one single variable: Access the Elements of an Array.You refer to an array element by referring to the index number. .The Length of an Array.Use the len() method to return the length of an array (the number of el...

Python Functions

Python Functions  

updated at May 09, 2024   6,762  
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 While Loops/For Loops

Python While Loops/For Loops  

updated at May 09, 2024   6,904  
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 Conditions and If statements

Python Conditions and If statements  

updated at May 09, 2024   6,776  
Python supports the usual logical conditions from mathematics::Equals: a == b,Not Equals: a != b,Less than: a < b,Less than or equal to: a b,Greater than or equal to: a >= b.These conditions can be used in several ways,most commonly in "if statements" and ...

Python Dictionaries

Python Dictionaries  

updated at May 09, 2024   6,744  
Dictionaries are used to store data values in key:value pairs.A dictionary is a collection which is ordered*,changeable and do not allow duplicates.Dictionaries are written with curly brackets,and have keys and values:Dictionary Items.Dictionary items are ...

Python Sets  

updated at May 09, 2024   6,740  
Sets are used to store multiple items in a single variable.Set is one of 4 built-in data types in Python used to store collections of data,the other 3 are List,Tuple,and Dictionary,all with different qualities and usage.A set is a collection which is unord...

Python Tuples

Python Tuples  

updated at May 09, 2024   6,815  
Tuples are used to store multiple items in a single variable.Tuple is one of 4 built-in data types in Python used to store collections of data,the other 3 are List,Set,and Dictionary,all with different qualities and usage.A tuple is a collection which is o...

Python Lists

Python Lists  

updated at May 10, 2024   6,812  
Lists are used to store multiple items in a single variable.Lists are one of 4 built-in data types in Python used to store collections of data,the other 3 are Tuple,Set,and Dictionary,all with different qualities and usage.Lists are created using square br...

Python String Operations  

updated at May 10, 2024   6,842  
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 Data Types  

updated at May 10, 2024   6,857  
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 Variables  

updated at May 10, 2024   6,820  
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 Comments  

updated at May 10, 2024   6,946  
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 Syntax  

updated at May 10, 2024   6,877  
Execute Python Syntax.As we learned in the previous page,Python syntax can be executed by writing directly in the Command Line:Or by creating a python file on the server,using the .py file extension,and running it in the Command Line:Python Indentation.Ind...

Python Getting Started

Python Getting Started  

updated at May 10, 2024   6,868  
Many PCs and Macs will have python already installed.To check if you have python installed on a Windows PC,search in the start bar for Python or run the following on the Command Line (cmd.exe):To check if you have python installed on a Linux or Mac,then on...

Python Introduction  

created at Jun 12, 2023   6,744  
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.It is used for:web development (server-side), software development, mathematics, system scripting. What can Python do?Python can be used on a server to creat...

What is Python?

What is Python?  

created at Jun 12, 2023   6,735  
Python is a genus of constricting snakes in the Pythonidae family native to the tropics and subtropics of the Eastern Hemisphere.In terms of programming language, Python was created by Guido van Rossum, and first released on February 20, 1991. While you ma...

Machine Learning Types and Programming Languages

Machine Learning Types and Programming Languages  

updated at Nov 29, 2023   6,775  
In the area of Machine Learning Technology, threre are three different types of Machine Learning. You should make decision which type you want to use if you are trying to implement something. In Supervised Learning, we are given the data sets and already k...

The Future of Software Engineer - AI Engineering

The Future of Software Engineer - AI Engineering  

created at Nov 05, 2025   207  
What is AI Engineering?AI Engineering is a multi-faceted discipline focused on building,deploying,and maintaining AI systems at scale in a reliable and efficient way.Think of it as taking AI models (like LLMs,image recognition systems,etc.) and turning the...

ChatGPT Reset command and Ignore the Previous Response feature to have a Solid Result  

updated at May 16, 2024   7,060  
The ChatGPT Reset Command is a feature that allows you to reset the conversation context and start fresh.This can be useful if you want to change the topic or start a new line of inquiry without any prior context influencing the conversation.Reset Command:...

ChatGPT Connectors makes the results Perfect as you expected  

created at May 10, 2024   6,995  
Connectors are essential for structuring requests to ChatGPT in a clear,organized,and efficient manner.They facilitate natural language understanding and ensure that all aspects of your request are addressed,leading to more effective interactions with the ...

Difference between Java and Javascript  

updated at Oct 03, 2024   6,920  
Java and JavaScript are two distinct programming languages that serve different purposes and have different capabilities,despite the similarity in their names.Here's a comparison to highlight their differences:Origin and Purpose:Java: Developed by Sun Micr...

Java Servlet Example  

created at Feb 19, 2024   6,783  
Creating a quick servlet-based web application involves a few steps. You'll need to set up a development environment, create the necessary project structure, write servlet classes, configure the deployment descriptor (web.xml), and deploy the application t...

Creating a simple Java Servlet (Web Server Page) with Apache Maven on Microsoft Windows

Creating a simple Java Servlet (Web Server Page) with Apache Maven on Microsoft Windows  

created at Jan 28, 2024   6,763  
STEP 1. Install OpenJDK 17https: / / learn.microsoft.com / en-us / java / openjdk / download#openjdk-17 → select microsoft-jdk-17.0.10-windows-x64.msi → Install STEP 2. Install Mavenhttps: / / maven.apache.org / → Download → apache-maven-3.9.6-bin.z...

Java Tutorials associated with AP Computer Science A

Java Tutorials associated with AP Computer Science A  

updated at Jun 15, 2024   6,891  
As you set sail on your journey through AP Computer Science A,you're about to delve into the exciting world of Java programming.With a treasure trove of resources at your disposal,let's embark on a guided tour through the essentials of Java,equipping you w...

Java Inner Classes  

updated at May 10, 2024   6,745  
In Java,it is also possible to nest classes (a class within a class).The purpose of nested classes is to group classes that belong together,which makes your code more readable and maintainable.To access the inner class,create an object of the outer class,a...

Java Polymorphism  

created at Jul 18, 2023   6,747  
Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance.Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those...

Java Inheritance (Subclass and Superclass)  

updated at May 10, 2024   6,804  
In Java,it is possible to inherit attributes and methods from one class to another.We group the "inheritance concept" into two categories::subclass (child) - the class that inherits from another class,superclass (parent) - the class being inherited from.To...

Java Packages  

updated at May 10, 2024   6,801  
Java Packages & API.A package in Java is used to group related classes.Think of it as a folder in a file directory.We use packages to avoid name conflicts,and to write a better maintainable code.Packages are divided into two categories::Built-in Packages (...

Java Classes and Objects

Java Classes and Objects  

updated at May 10, 2024   6,763  
Java is an object-oriented programming language.Everything in Java is associated with classes and objects,along with its attributes and methods.For example: in real life,a car is an object.The car has attributes,such as weight and color,and methods,such as...

Java Recursion  

updated at May 10, 2024   6,799  
Recursion is the technique of making a function call itself.This technique provides a way to break complicated problems down into simple problems which are easier to solve.Recursion may be a bit difficult to understand.The best way to figure out how it wor...

Java Scope  

updated at May 10, 2024   6,739  
In Java,variables are only accessible inside the region they are created.This is called scope.Method Scope.Variables declared directly inside a method are available anywhere in the method following the line of code in which they were declared:Block Scope.A...

Java Methods  

updated at May 10, 2024   6,752  
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 ...

Java While Loop/Do While Loop/For Loop/For-Each Loop/Break/Continue  

updated at May 13, 2024   6,941  
Loops can execute a block of code as long as a specified condition is reached.Loops are handy because they save time,reduce errors,and they make code more readable.Java While Loop.The while loop loops through a block of code as long as a specified conditio...

Java Switch Statements  

updated at May 15, 2024   6,813  
Instead of writing many if.else statements,you can use the switch statement.The switch statement selects one of many code blocks to be executed:Syntax:This is how it works::The switch expression is evaluated once.The value of the expression is compared wit...

Java Short Hand If...Else (Ternary Operator)  

updated at May 15, 2024   6,881  
In the vast world of programming,efficiency is key.Every line of code counts,and developers constantly seek ways to streamline their scripts without compromising functionality.One such tool in the Java arsenal is the ternary operator,a concise alternative ...