# P3.1 Python मध्ये Strings कशा तयार करायच्या आणि जोडायच्या?

Source: https://ravindrabagale.com/mr/datascience/py03-python-strings-tutorial-slicing-f-strings-and-string-methods/p3-1-how-to-create-and-join-strings-in-python.html
Language: mr (Marathi with English technical terms)

हे का शिकायचं?

Reports मध्ये नावं, labels आणि messages बनवताना text जोडावा लागतो.

हे काय आहे?

String म्हणजे quotes मधला text. + ने strings जोडतात, * ने repeat करतात आणि len() ने लांबी कळते.

कसं करायचं?

Step 1. Text quotes मध्ये लिहा.
Step 2. + ने जोडा.
Step 3. len() ने लांबी तपासा.

उदाहरण A: दोन strings तयार करा

```python
name = "Priya"
city = "Nagpur"
print(name)
print(city)
```

Output:

```text
Priya
Nagpur
```

याचा अर्थ: Single किंवा double quotes दोन्ही चालतात.

उदाहरण B: Strings जोडा

```python
name = "Priya"
city = "Nagpur"
label = name + " from " + city
print(label)
```

Output:

```text
Priya from Nagpur
```

याचा अर्थ: + ने text जोडला. मधली space आपणच टाकावी लागते.

उदाहरण C: लांबी आणि repeat

```python
code = "SKU-1042"
print(len(code))
print("-" * 20)
```

Output:

```text
8
--------------------
```

याचा अर्थ: len() अक्षरांची संख्या देतो आणि * text repeat करतो.

रवींद्र बागले यांची tip

Original text column तसाच ठेवा आणि साफ केलेली copy बनवा. Cleaning चुकलं तरी original तुमच्याकडे राहतो.
