Joined September 2022
12 Photos and videos
Python c# Java Maths GIF Tutorial retweeted
Replying to @CatWorkers
Python - if, elif, else Conditions Tutorial a = 33 b = 33 if b > a: print("b is greater than a") elif a == b: print("a and b are equal") #pythonprogramming #python #Software #pythonlearning #programming #BigData #DBGAbeysekera #SriLanka

ALT a = 2 b = 4 if a<b: print(a, 'is less than', b) else: print(a, 'is not less than', b) a = 2 b = 4 c = 5 if a<b: print(a, 'is less than', b) if c<b: print(c, 'is less than', b) else: print(c, 'is not less than', b) else: print(a, 'is not less than', var1 = 1 2j if (type(var1) == int): print("Type of the variable is Integer") elif (type(var1) == float): print("Type of the variable is Float") elif (type(var1) == complex): print("Type of the variable is Complex") elif (type(var1) == bool): print("Type of the variable is Bool") elif (type(var1) == str): print("Type of the variable is String") elif (type(var1) == tuple): print("Type of the variable is Tuple") elif (type(var1) == dict): print("Type of the variable is Dictionaries") elif (type(var1) == list): print("Type of the variable is List") else: print("Type of the variable is Unknown")

9
6
Python c# Java Maths GIF Tutorial retweeted
Replying to @CatWorkers

ALT a = int(input("Enter a? ")); b = int(input("Enter b? ")); c = int(input("Enter c? ")); if a>b and a>c: print("a is largest"); if b>a and b>c: print("b is largest"); if c>a and c>b: print("c is largest"); a = 1 while( a<10): print(” loop entered”, a, “times”) a = a 1 print(“loop ends here”) a = 1 while( a<10): print(” loop entered”, a, “times”) a = a 1 print(“loop ends here”) x=1 y=12 z=15 if x < y < z: print(x); print(y); print(z) for i in [1,2,3,4,5]: if i==3: break print (i) else: print ("for loop is done") print ("Outside the for loop") for i in [1,2,3,4,5]: if i==3: continue print (i) else: print ("for loop is done") print ("Outside the for loop") for i in [1,2,3,4,5]: print (i) else: print ("for loop is done") print ("Outside the for loop") ''' 1 2 3 4 5 for loop is done Outside the for loop

1
9
9
Python c# Java Maths GIF Tutorial retweeted
Replying to @cat_auras

ALT Parameters start (optional) : It is an integer number that specifies the starting position. The Default value is 0. stop (optional) : It is an integer that specifies the ending position. step (optional) : It is an integer that specifies the increment of a number. The Default value is 1. Start: Starting number of the sequence. Stop: Generate integers (whole numbers) up to, but not including this number. Step: Difference between each number in the sequence. Note: All parameters must be integers and can either be positive or negative. range() is 0-index based, meaning list indexes start at 0, not 1. start: (Lower limit) It is the starting position of the sequence. The default value is 0 if not specified. For example, range(0, 10). Here, start=0 and stop = 10 stop: (Upper limit) generate numbers up to this number, i.e., An integer number specifying at which position to stop (upper limit). The range() never includes the stop number in its result step: Specify the increment value. Ea

10
6
Python c# Java Maths GIF Tutorial retweeted
Replying to @cat_auras

ALT Lambda Functions and Anonymous Functions in Python Lambda functions are also called anonymous functions. An anonymous function is a function defined without a name. Lambda function with filter() filter() function filters the given iterator with the help of a function. Consider the below-given example where filter() function filters and prints even numbers of the given iterator using a user-defined function. The lambda functions are useful when we want to give the function as one of the arguments to another function. We can pass the lambda function without assigning it to a variable, as an anonymous function as an argument to another function. Python has built-in functions that take other functions as arguments. The map(), filter() and reduce() functions are important functional programming tools. All of them take a function as their argument. The argument function can be a normal function or a lambda function.

3
3
Python c# Java Maths GIF Tutorial retweeted
Replying to @realpython
Mutable: The value of some objects can change, Objects whose value can change are said to be mutable. Immutable: An object whose value is unchangeable once they are created is called immutable. the mutable data types in Python are list, dictionary, set, and user-defined classes.
2
2
Python c# Java Maths GIF Tutorial retweeted
#100DaysOfCode #pythonprogramming #python #Software #pythonlearning #srilanka #DBGAbeysekera #programming Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage.
3
7
Python c# Java Maths GIF Tutorial retweeted
Replying to @American149
What are the string methods in Python? Python strings are immutable which means they cannot be changed after they are created If the variable s is a string, then the code s.lower() runs the lower() method on that string object and returns the result #DBGABEYSEKERA #Python
2
6
Python c# Java Maths GIF Tutorial retweeted
Replying to @American149
Python if else Statement In this article, you will learn to create decisions in a Python program using different forms of if..else statement. #100DaysOfCode #pythonprogramming #python #Software #pythonlearning #srilanka #DBGAbeysekera
3
3
Python c# Java Maths GIF Tutorial retweeted
Replying to @American149
#100DaysOfCode #pythonprogramming #python #Software #pythonlearning Python is a high-level, general-purpose programming language.
1
2
3