Python day 00

Patricia Arquette
Patricia ArquetteOriginal
2024-09-26 18:10:17588browse

Python day 00

Today, I started my personal challenge, #100DaysOfCode. For this challenge, I chose to learn Python because I aim to become a Data Analyst.

Chapter 2: Variables and String
The material I'm using to study Python is a book called Python Crash Course by Eric Matthes. It's extremely helpful for studying, and so far, I've noticed that it explains concepts in simple language. Today, I learned about variables and string.

Code

  1. creating a var `country = "Kazakhstan" print(country)

country = "Russia"
print(country)`

  1. learning a new function title()
    name = "ada lovelace"
    print(name.title())

  2. complete msg with using f-string
    first_name = "ada"
    last_name = "lovelace"
    full_name =f"{first_name} {last_name}"
    print(f"Hello, {full_name.title()}!")

4.new thing for me: learning about nt (new line and tab)
5.keep forgetting to use () when writing after a code like this
name = "zhanel"
print(name.lower())
print(name.upper())
print(name.title())

Tomorrow
Tomorrow is friday it might be difficult to spend 1 hours, but I will try to finish chapter 2.

The above is the detailed content of Python day 00. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn