CodeKaroYaaro PPT python 3


CodeKaroYaaro13

Uploaded on Dec 9, 2020

Category Education

We at CodeKaroYaaro empowering every kid to become a Computer Science Expert by teaching them to develop mobile apps, gaming apps, websites, web applications and AI-Powered Mobile Apps. Gone are the days when programming languages and learning how to code was like a top-secret for kids, parents were like not to give them electronic gadgets for exploring the uses of it. And mobile phones, tablets, computers, and laptops all were kept away from kids' surroundings. By the time the technology revolution took place everything had changed from traditional to digital platforms. Now, Websites, Mobile Apps, Web Apps, Gaming Apps are part of our daily life. We all are digitally connected with social sites like Facebook, Twitter, Instagram, LinkedIn, etc. We are utilizing technology for our purpose, we should also propose opportunities for learning how to code to kids so that they can explore more into technology via our programming and coding courses. Our objective is very clear towards kids' development by teaching them programming languages, block coding, python coding, etc., and opening a new world of opportunities with fun and creativity for them. We are always inspiring our little coders for learning to code in different coding languages like HTML, Java python for kids. And we will arrange more Coding Winter and Summer Camps and coding quizzes, competitions, online quizzes, and programs for kids from time to time.

Category Education

Comments

                     

CodeKaroYaaro PPT python 3

PYTHON PROGRAMMING PART(3) ADD YOUR NAME HERE CONTROL FLOW AND FUNCTIONS  What is Boolean value? A Boolean value is either true or false. In Python, the two Boolean values are True and False (the capitalization must be exactly as shown), and the Python type is bool. >>> type(True)  What is Boolean Expression?  A Boolean expression is an expression that evaluates to produce a result which is a Booleanvalue. For example, the operator == tests if two values are equal. It produces (or yields) aBoolean value:  >>> 5 == (3 + 2) # Is five equal 5 to the result of 3 + 2 ?  True  What is meant by conditional If? The if statement in python is used to test a condition. If condition is true, statement of if block is executed otherwise it is skipped . Syntax of python if statement: if(condition): statements  Write the syntax and usage of for loop For Loop is used to iterate a variable over a sequence(i.e., list or string) in the order that they appear. Syntax: Forin :  write the syntax and usage of for loop For Loop is used to iterate a variable over a sequence(i.e., list or string) in the order that they appear. Syntax: for in :  Write the syntax and usage of while loop While Loop is used to execute number of statements or body till the condition passed in while is true. Once the condition is false, the control will come out of the loop. Syntax: while : : Body  What is python break statement? Break statement is a jump statement that is used to pass the control to the end of the loop. Applying break statement makes the loop to terminate and controls goes to next line pointing after loop body  W H A T I S C H A I N E D C O N D I T I O N A L S T A T E M E N T ? To check for mult iple condit ions el if statement is used.This statement is l ike executing a if statement inside a else statement. Syntax: i f statement: statements el if statement: statements else: statements  What is python break statement? Break statement is a jump statement that is used to pass the control to the end of the loop. Applying break statement makes the loop to terminate and controls goes to next line pointing after loop body. What is python continue statement? Continue Statement is a jump statement that is used to skip the present iteration and forces next iteration of loop to take place. It can be used in while as well as for loop statements. What is python pass statement? When you do not want any code to execute, pass Statement is used. It is same as the name refers to. It just makes the control to pass by without executing any code. Syntax: pass  What is len function and explain how it is used on strings with an example. The len function, when applied to a string, returns the number or character in a string. Example: >>>book=‘Problem Solving and Python Programming’ >>>l en (book) 38 >>>  Explain about string slicing with examples. A substring of a string is obtained by taking a slice. The operator [n:m] returns the part of the string from the nth character to the mth character, including the first but excluding the last. >>>book=‘Problem Solving and Python Programming‘ >>>print(book[0:7]) Problem >>>print(book[21:27]) python .What are the two operators that are used in string functions? The in operator tests for membership. >>>‘V‘ in ‗VRB ‘ True >>>‘S‘ in ‗VRB‘ >>>False The not in operator returns the logical opposite results of in operator. >>>‘x‘ not in ‗VRB‘ True  What is the use of str.upper() and str.lower() functions in string? The functions str.upper() and str.lower() will return a string with all the letters of original string converted to upper or lower case letters. >>>ss=‘VRB Publishers ‘ >>>print(ss. upper()) VRB PUBLISHE RS >>>print(ss .lower()) Vrb publishers Explain string comparison with an example. The comparison operator works on string to check if two strings are equal. >>>word=‘VRB Publishers‘ >>>if word==‘VRB Publishers‘ Print(‗Both are Equal‘) Both are Equal How to split strings and what function is used to perform that operation? The str.split() method is used to split strings up. >>>book=‘Problem Solving and Python Programming‘ >>>print(book.split()) [‗Problem‘, ‗Solving‘, ‗and‘, ‗Python‘, ‗Programing‘] We are going to have a great year learning together! S LForI moDre infoErma tioTn pleaIse TcontaEct us at : https://www.codekaroyaaro.com/ [email protected] 7972289701 https://www.facebook.com/codekaro yaaro https://www.instagram.com/codekaroyaaro/? igshid=1nb6afsffwzd https://www.linkedin.com/company/codekaroyaaro https://www.youtube.com/channel/UC0GUyPIpdDVJQMugE tkH8Pw