Tuesday, April 26, 2022

Python Variables


 Python Variables



     Variables are reserved memory locations to store values. We can store values like numbers, strings, float etc in computer memory while executing a program using containers called variables.

    In simple, if we have a book in a box, then box is a variable and book is stored values.

Rules for naming a variables:

1. Python Variables start with either Upper case (A-Z) or Lower case (a-z) or Underscore character(_). Example: _myvalue, myalue, Myvalue…

2. We can use digits (0-9), but we cant start a variable with digit. Example: 1count, 1value are invalid variables. My1value, my_value1 are valid variables.

3. Variables are case sensitive. Example: myname and Myname are different variables.


Example Programs to understand use of Python Variables better:

1. Program for using different variables with same name:

myname="Python"

print(myname)

myName="coding"

print(myName)

Myname="doit"

print(Myname)


Output:

Python

coding

doit

 

2. Program to find type of a variable:

a="Python"

print(type(a))

a=10

print(type(a))

a=10.24

print(type(a))

a=True

print(type(a))


Output

<class 'str'>

<class 'int'>

<class 'float'>

<class 'bool'>

 

3. Program to assign same values to different variables:

a=20

b=20

c=20

print(a)

print(b)

print(c)


Output

20

20

20


4. Program to assign same values to different variables in single line

a=b=c=20

print(a)

print(b)

print(c)


Output

20

20

20


5. Program to assign different values to different variable:

x=10

y=20

z=30

print(x)

print(y)

print(z)


Output

10

20

30


6. Program to assign different values to different variable in single Line:

x,y,z=10,20,30

print(x)

print(y)

print(z)


Output

10

20

30


7. Program to assign different values to different variable and print different values in single line

x,y,z=10,20,30

print(x,y,z)


Output

10 20 30


8. Program to assign different String values to different variable

x,y,z="Apple","Boy","Cat"

print(x)

print(y)

print(z)

 

Output

Apple

Boy

Cat


9. Program to assign multiple strings to variable:

x="Hello Viewers, Welcome"

print(x)


Output

Hello Viewers, Welcome

 

10. Program to assign different type values to different variable:

a,b,c="10","20.45", "Hello"

print(a,b,c)


Output

10   20.45   Hello


 Thanks and Regards

J.Divyabharathi Veera

Tuesday, April 12, 2022

7 Tips That Will Help You Learn Programming Languages

 7 Tips That Will Help You Learn Programming Languages Easily

    
    If you’re looking to learn programming languages but are unsure of where to start, don’t worry — you’re not alone! It can be hard to know where to begin, but with the right tips and strategies, it’s not as difficult as it might seem. To help you get started, I have come up with these seven tips that will help you learn programming languages more easily and quickly than ever before.

You Can watch more tips on our YouTube Channel. 
Click a Link or Image Below.


1) Read, Read, and then Read Some More

    Researching programming languages, technologies, and frameworks will make learning them much easier. If you already have an idea of what to learn, read up on that language first. If you’re starting from scratch and aren’t sure where to start, pick something you think might be interesting.


2) Understand What Kind of Learner You Are

    When you’re learning a new language, it’s helpful to understand how your brain learns best. Not all of us are good at every kind of learning, and knowing what type of learner you are can help inform you about how you should study. The three main types of learners—visual, auditory, and kinesthetic.


3) Build Something

    The best way to learn a new skill is to just get started. Don’t worry about learning every tiny detail before you create something. Think of it like learning a new language—you can’t expect to become fluent without using it every day, and you can’t expect to understand everything that goes into coding without actually doing it yourself. It takes hours and hours of practice to master any skill, so start building something today!


4) Take Online Courses

    Learning a programming language can seem challenging at first. Online courses and tutorials, though, make it easier to get started. Sites like Codecademy offer free courses on popular languages like JavaScript and Python. This is a great way to learn new concepts in an easy-to-digest format—and often times you’ll have access to other users as well, who may be able to help you out when you run into issues.


5) Attend a Online Classes

    Online classes are valuable tools for getting up to speed on new programming languages, but there’s no replacement for an experienced mentor or teacher. Check with your local school district or community college to see if they offer free courses in Java, Python, or PHP. Alternatively, you can search for organizations that teach programming languages and meetups in your area. If you have a personal coach (sometimes offered by companies that specialize in particular programs), use them as a resource.


6) Find Friends Who Can Help

    Having programming friends can be a great way to learn. If you are looking for something specific and don’t know where to start, a friend who knows your preferred language might be able to help. Your relationship with your friends doesn’t have to be transactional. Offer them something in return for their time, whether it is coffee or a bottle of wine.


7) Take Notes while Reading/Watching/ Listening

    Be sure to take notes while you’re learning. Reading and hearing something doesn’t mean that it will get internalized by your brain; you have to be actively writing down what you’re learning in order for it to stick. Note-taking should be done during every single session, whether on a computer or with pen and paper.


Monday, April 11, 2022

Introduction : Learn Programming Languages Visually in Tamil


Introduction: Learn Programming Languages Visually in Tamil

    Hello Friends, 

        This is Introduction to get you an idea about why this blog has started. 

    நான் உங்கள் திவ்யபாரதி
    இது உங்க BasicToPro Tamil

Enga யார் எல்லாம் Programming Languages ஆ Simple ஆ Easy ஆ கத்துக்கணும் , அவங்களுக்காக. எல்லா Concept உம் Visualize பண்ணி படிக்க போறோம். Welcome to BasicToPro Tamil.     This blog is mainly started for those who wants to learn programming languages in simple and easy way from Basic to Professional Level in Tamil Language.     I am going to cover deeper concepts of all programming languages from basic to professional level.     List of programming languages going to cover:         Python         C         C++         Java         JavaScript         Html         CSS         Etc     And also basic programs to professional level programs in the above topics.

To View Introduction Video on YouTube Click the Link Below:


Thanks and Regards,

Mrs. J.Divyabharathi Veera., MCA.,M.Phil.,NET.,
For Enquires Contact: enquiryatbasictopro@gmail.com



Program 12 BCA Madras University BCA Object Oriented Programming using C++ Practical Madras University Program 12 Implement a telephone directory using files

  BCA Object Oriented Programming using C++ Practical Madras University  Program 12  Implement a telephone directory using files SOURCE CODE...