Skip to main content

Learn Python With Junior


Hi, I’m Ausaf Abdullah! I’m a passionate 16-year-old developer with a keen interest in creating innovative software
 solutions. I love exploring new technologies and continuously improving my coding skills. Whether it's web development, 
mobile apps, or just diving into the latest programming languages(Python), I am always eager to learn and take on new 
challenges!

                                                          Python

                          Introduction

Welcome to the Python programming course! This course is based on a series of exercises that will help you become a real programmer step by step, get a job as a programmer, and later develop your
career.
The "Fast track" section contains exercises ideal for learning on your phone. You can do "Fast track" exercises at any time, even during the shortest session.
The "Slow track" section contains more demanding exercises. These exercises require access to a computer and more time to complete.
"Slow track" and "Fast track" exercises
complement each other, together creating the most efficient way to learn programming.

(1)
The print() function in Python is used to display values on the screen. You can print numbers, strings, and various data types by passing them
as arguments to the print() function.
For example:
print(2)
will display:2

(2)
The print() function in Python displays the given values. You can give it simple values like numbers, but you can also give it expressions that it will calculate first.
For example:
print(100+ 2)
This will first calculate 100+ 2, which is 102, and then display that result.

                                        (3)

The print() function displays the values given to it. Values enclosed in double quotes are treated as text (called strings). When you use the + operator with strings, it joins them together (concatenates them) instead of performing mathematical addition.

Numbers without quotes are treated as numerical values. You can perform mathematical operations like addition, subtraction, etc., on them.

For example:

print (100+ 200) # Output: 300 (addition) print("A" + "B") # Output: AB (concatenation)


                                      (4)

In Python, the print() function can display both strings and integers. When you want to add or concatenate objects together, it's crucial to

ensure they are of the same type.

For example, adding two numbers:

print (200+ 300)

This will simply sum the two numbers and display:

500

When you concatenate two strings:

print("200" + "300")

Python combines the two strings into a single string, displaying:

200300

However, if you try to mix a string and an integer directly, like this:

print("200" + 300)

Python will raise a TypeError because it cannot concatenate a string and an integer directly without explicit conversion.


This is the app link to Download

                                  





Comments

Popular posts from this blog

Proxy

Junior's Proxy - Access Blocked Sites Junior's Proxy Enter a website URL below to access it through our secure proxy: Visit Site