Posts

Showing posts with the label binary string

DATA TYPES IN PYTHON

Image
 Integer and Float • Variables can hold values of different types called data types. Some of the commonly used data types in python are integer, float, bool, strings, lists, tuples, dictionary, sets, etc • The data type of a variable is dependent on the value of the variable. For example, if the value of the variable userAge is 18 i.e userAge = 18 Here the data type of the variable is an integer. • For float data type the value of the variable should be a decimal. For example, if you create a variable for the percentage of students in class studentPercentage with a value 78.5 i.e studentPercentage = 78.5           Strings • A string data type is used to store textual information into a variable. • To store the value of a string data type, we need to put the value inside double quotes 11 " or single quotes ''. For example schoolName = "Bright International" characterName = 'Eva'                       ...

VARIBALES

Image
 (1) WHAT IS VARIABLE ? Variables are like empty containers used for storing data values. Just like we use a lunchbox to store our lunch in it, we use variables to store data. • phoneNumber • In the above example, phoneNumber is a variable used to store your phone number in it. (2) Create Variables characterName = "Eva" • In the above example characterName is the variable and Eva is its value. • '=' in above example assigns the value on the right to the variable on the left. # Create a variable userAge with value # <any number> and then run your code userAge = 15 (3) Update Variables Concept • The value of a variable can be changed/updated as many times as required after the variable is created. • For example, in the last chapter you created a variable: characterName = "Eva"                    • Now if you want to update the name to Pixie you can simply change the value by using "=" sign. characterName = 'Pixie' • Now the valu...

# COMMENTS

Image
  SINGLE LINE COMMENT Comments are descriptions that help programmers  better than understand the internet and functionality of the program. Single line comments starts with a hashtag # followed by your comment.for example  # printing a message  print("I like to code") You can add more than one single comment for the same instruction or code. for example: #print a message # print a message 'I  am learning to python' print("i am learning to python") souce code  # write a comment above the print() command # command help us to understand code print( "You have leanined about single lline comments in this section." )

GUESS THE FRUITS

Image
 THIS IS MY GAME. THIS GAME WAS VERY INTERESTING AND USEFULL BECAUSE THE GAME WAS NAME GUESS THE FRUITS MANY VARIETY OF FRUITS SO YOU CAN DOWNLOAD AND PLAY MY GAME I HOPE YOU LIKE IT THIS GAME.  THANK YOU                                                                                                                           CLICK AND DOWNLOAD

BINARY STRING & ALGORTHMS

Image
 TODAY GOING TO HERE PRESENT BINARY STRING  WE ARE ALREADY DISCUSS ABOUT BINARY LANGUAGES   PREVIES SESSION  TOADY DISCUSS ABOUT ABOUT BINARY STRIN G SO LET'S START. WHAT IS BIANRY? Binary is a way of  representing information using 1 and 0 or on and off. The number system that we normally use is the decimal number system. it has ten numbers:0-9. Binary system only has two number: 0 and 1.  BINARY DIGITS---Computer break down all complex function into simple 0 and 1.Every single 0 or  1 ia called a bit stand for binary digits. 01100111. HOW COMPUTER USE BANARY? Our block program written using blockly  are converted to computer languages programs which the computer understand run.                                     BINARY STRING                                    ...