29, అక్టోబర్ 2025, బుధవారం
26, అక్టోబర్ 2025, ఆదివారం
THE HONEYMOON PERIOD IS OVER ...........................................
- Idealization fades:You begin to see your partner's flaws and "imperfections" that you didn't notice before.
- Conflicts increase:The relationship may experience more arguments or disagreements as real-life issues arise.
- Daily life becomes the norm:The intense, blissful feeling decreases, and you both settle into a more routine dynamic.
- Intimacy changes:Sex may decrease, or a more casual, comfortable level of intimacy replaces the constant passion.
- Annoying quirks surface:What you once found endearing or cute about your partner may now start to irritate you.
- Focus on communication:Have open and honest conversations about your feelings, needs, and any issues that arise.
- Continue to date each other:Intentionally plan dates and activities, just as you did in the beginning, to maintain excitement and connection.
- Introduce novelty:Try new things together to keep stimulating your brains' reward systems, which can help recreate some of the initial spark.
- Allow for space:It's healthy to have some alone time, as it allows you to recharge and miss each other, which can strengthen your connection when you reunite.
- Accept imperfections:Understand that this shift is a normal part of a healthy, long-term relationship, not necessarily a sign of a broken one
23, అక్టోబర్ 2025, గురువారం
22, అక్టోబర్ 2025, బుధవారం
SQL commands are fundamental building blocks used to perform given operations on database. .....................The operations include queries of data. creating a table, adding data to tables, dropping the table, modifying the table and set permission for users. SQL Commands are mainly categorized into five categories:
14, అక్టోబర్ 2025, మంగళవారం
Python Modules..........
Customization is needed Mr.ram.a.dayinaboyina…………… for each and every
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:
Save this code in a
file named mymodule.py
def greeting(name):
print("Hello,
" + name)
Use a Module
Now we can use the module we just
created, by using the import statement:
Example
Import the module
named mymodule, and call the greeting function:
import mymodule
mymodule.greeting("Jonathan")
Note: When using a
function from a module, use the syntax: module_name.function_name.
Variables in Module
The module can contain functions, as
already described, but also variables of all types (arrays, dictionaries,
objects etc):
Example
Save this code in the
file mymodule.py
person1
= {
"name": "John",
"age": 36,
"country": "Norway"
}
Example
Import the module
named mymodule, and access the person1 dictionary:
import mymodule
a = mymodule.person1["age"]
print(a)
Naming a Module
You can name the module file whatever
you like, but it must have the file extension .py
Re-naming a Module
You can create an alias when you import
a module, by using the as keyword:
Example
Create an alias
for mymodule called mx:
import mymodule as mx
a = mx.person1["age"]
print(a)
Built-in Modules
There are several built-in modules in
Python, which you can import whenever you like.
Example
Import and use
the platform module:
import platform
x = platform.system()
print(x)
Using the dir()
Function
There is a built-in function to list
all the function names (or variable names) in a module. The dir() function:
Example
List all the defined
names belonging to the platform module:
import platform
x = dir(platform)
print(x)
Note: The dir() function can be used on all modules,
also the ones you create yourself.
Import From Module
You can choose to import only parts
from a module, by using the from keyword.
Example
The module
named mymodule has one
function and one dictionary:
def greeting(name):
print("Hello,
" + name)
person1 = {
"name": "John",
"age": 36,
"country": "Norway"
}
Example
Import only the
person1 dictionary from the module:
from mymodule import person1
print (person1["age"])
program no 46 importing .........................
To import a module from a package created in Python, follow these steps.
my_project/
__init__.py
main.py
my_package/
__init__.py
my_module.pymy_module.py content:# my_package/my_module.py
def greet(name):
return f"Hello, {name} from my_module!"__init__.py in my_package (optional but good practice):my_package is imported. For a simple case, an empty __init__.py is sufficient.main.py to import and use the module:# main.py
from my_package import my_module
# Now you can use functions or variables from my_module
message = my_module.greet("User")
print(message)from my_package import my_module: This statement imports themy_modulemodule directly from themy_packagepackage.- Once imported, you can access functions, classes, or variables defined within
my_module.pyusing themy_module.prefix (e.g.,my_module.greet("User")).
# main.py
from my_package.my_module import greet
# Now you can use greet directly
message = greet("User")
print(message)greet function without explicitly referencing my_module each time. Choose the import style that best suits the readability and organization of your code.program no 45 in python.................
To create a Python package containing two or more modules, follow these steps:
my_package.my_package directory, create your Python modules (e.g., module1.py and module2.py).my_package/module1.py:def greet(name):
return f"Hello, {name} from Module 1!"
def add(a, b):
return a + bmy_package/module2.py:def farewell(name):
return f"Goodbye, {name} from Module 2!"
def multiply(a, b):
return a * b__init__.py File:my_package directory, create an empty file named __init__.py. This file signifies to Python that the directory is a package. While it can be empty, it can also be used to define package-level imports or initialization code. my_package/__init__.py:# You can optionally import modules or functions here for easier access
# from . import module1
# from . import module2
# from .module1 import greet, add
# from .module2 import farewell, multiplymain.py) outside the my_package directory.main.py:# Import specific functions from modules within the package
from my_package.module1 import greet, add
from my_package.module2 import farewell, multiply
print(greet("Alice"))
print(f"Sum: {add(5, 3)}")
print(farewell("Bob"))
print(f"Product: {multiply(4, 6)}")
# You can also import the entire module and access its functions
# import my_package.module1
# print(my_package.module1.greet("Charlie")).
├── my_package/
│ ├── __init__.py
│ ├── module1.py
│ └── module2.py
└── main.pymain.py, it will import and utilize the functions defined within module1.py and module2.py of your my_package.