Create an object and display its content in a table.

Create an object and display its content in a table. <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Display Object in Table</title> <style> table { width: 50%; border-collapse: collapse; margin: 20px 0; } table, th, td { border: 1px solid black; } th, td { padding: 8px; text-align: left; } </style> </head> …

Create an object and display its content in a table. Read More »

How to create a bold text using javascript.

How to create a bold text using javascript. <! Doctype html> <html lang=”en”> <head> <title> make a text bold using javascript</title> </head> <body> <p id=”mytext”> this is some text </p > <!DOCTYPE html> <html lang=”en”> <head>     <meta charset=”UTF-8″>     <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>     <title>Make Text Bold with JavaScript</title> </head> <body>     <p id=”myText”>This is some text.</p>     <button onclick=”makeTextBold()”>Make Text Bold</button>     <script>         function makeTextBold() {             var element = document.getElementById(“myText”);             element.innerHTML = “<b>” + element.innerHTML + “</b>”;         }     </script> </body> </html>  

Create Login page design in Tkinter

This Python script demonstrates how you can develop a user registration and login system using the Tkinter library. To begin with, it creates a well-designed graphical user interface (GUI) that not only facilitates account creation but also provides a secure login process and effective credential management. Additionally, the application features a simple yet efficient interface …

Create Login page design in Tkinter Read More »

Find null value’s index in NumPy array – Python

Numerical Python, is a Python library used for efficient numerical and scientific computing. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to perform operations on these arrays. NumPy is widely used for data analysis, machine learning, and scientific research due to its performance and ease of use. …

Find null value’s index in NumPy array – Python Read More »

Python Regular Expressions (RegEx) with examples

Regular Expressions (regex) are patterns used to match character combinations in strings. Let’s go through some examples using Python’s re module. Importing the re module: import re   Basic Match: pattern = r”hello” text = “hello world” match = re.search(pattern, text) if match: print(“Found:”, match.group())   .: Matches any character except newline. ^: Matches the …

Python Regular Expressions (RegEx) with examples Read More »

Python Naming Convention

Python naming conventions are guidelines that help ensure consistency and readability in Python code. They are part of PEP 8, the Python Enhancement Proposal that outlines coding standards for Python. Here are the key conventions: Naming Conventions for Different Elements Variables and Functions: Use lowercase letters and separate words with underscores (snake_case). Example: my_variable, calculate_area() …

Python Naming Convention Read More »

Scroll to Top