Exercise 22

Write a program in Python, which returns the first word of a given text. Example for the text: t = 'Python is a wonderful programming language', the program must return Python


# define a string s
s = "Learning Python in my-course.net"

# initialize the first word at empty string

# initialize a counter
i = 0
# search the first space in string
while (s[i] != " "):
first = first + s[i]
i = i + 1
print("The first word in the string s is : ", s[:i])
Younes Derfoufi
2 thoughts on “Solution Exercise 22”
  1. Hello my name is Matthew D’Agati.
    Solar power happens to be perhaps one of the most promising and sought-after resources of clean, renewable energy in modern times. This can be because of its numerous benefits, including cost benefits, energy savings, plus the positive impact this has from the environment. In this specific article, we shall talk about the advantages of choosing solar technology in homes and businesses, the technology behind it, and just how it can be implemented to increase its benefits.

    One of many advantages of choosing solar energy in homes could be the cost savings it provides. Solar energy panels can handle generating electricity for your house, reducing or eliminating the need for traditional sourced elements of energy. This could lead to significant savings on your own monthly energy bill, particularly in areas with a high energy costs. In addition, the price of solar panel systems and associated equipment has decreased significantly over time, which makes it less expensive for homeowners to purchase this technology.

    Another advantage of using solar power in homes could be the increased value it could provide into the property. Homes which have solar panel systems installed are often valued higher than homes which do not, because they offer an energy-efficient and environmentally friendly option to traditional energy sources. This increased value may be an important benefit for homeowners who are seeking to sell their home later on.

    For businesses, the benefits of using solar technology are wide ranging. One of several primary benefits is cost benefits, as businesses can significantly reduce their energy costs by adopting solar power. In addition, there are many different government incentives and tax credits accessible to companies that adopt solar power, which makes it even more affordable and cost-effective. Furthermore, companies that adopt solar energy will benefit from increased profitability and competitiveness, because they are viewed as environmentally conscious and energy-efficient.

    The technology behind solar power is relatively simple, yet highly effective. Solar panel systems are made of photovoltaic (PV) cells, which convert sunlight into electricity. This electricity are able to be kept in batteries or fed directly into the electrical grid, with respect to the specific system design. To be able to maximize some great benefits of solar technology, it is vital to design a custom system this is certainly tailored to your specific energy needs and requirements. This can make sure that you have the proper components set up, such as the appropriate quantity of solar panel systems as well as the right kind of batteries, to optimize your energy efficiency and value savings.

    One of several important aspects in designing a custom solar power system is knowing the various kinds of solar panel systems and their performance characteristics. There’s two main forms of solar energy panels – monocrystalline and polycrystalline – each featuring its own benefits and drawbacks. Monocrystalline solar power panels are made of a single, high-quality crystal, which makes them more effective and sturdy. However, also, they are more costly than polycrystalline panels, that are created from multiple, lower-quality crystals.

    Along with solar power panels, a custom solar power system will even include a battery system to store excess energy, along with an inverter to convert the stored energy into usable electricity. It’s important to choose a battery system that is effective at storing the actual quantity of energy you will need for the specific energy needs and requirements. This can make certain you have a dependable way to obtain power in the eventuality of power outages or other disruptions to your power supply.

    Another advantage of using solar technology may be the positive impact this has from the environment. Solar power is a clear and renewable energy source, producing no emissions or pollutants. This makes it a perfect replacement for traditional sourced elements of energy, such as for instance fossil fuels, that are a major contributor to polluting of the environment and greenhouse gas emissions. By adopting solar energy, homeowners and businesses often helps reduce their carbon footprint and play a role in a cleaner, more sustainable future.

    In summary, the advantages of using solar technology both in homes and businesses are numerous and should not be overstated. From cost benefits, energy savings, and increased property value to environmental impact and technological advancements, solar technology provides a multitude of advantages. By understanding the technology behind solar power and designing a custom system tailored to specific energy needs, you’ll be able to maximize these benefits and then make a positive effect on both personal finances plus the environment. Overall, the adoption of solar technology is an intelligent investment for a sustainable and bright future.

    If you want to read more info on your focus come by my own blog: https://business.tcnj.edu/ceo-peer-mentors/business energy broker

Leave a Reply