Program: 2 Taking multiple type of input from user.php <form action="get.php" method="post"> <fie...
Read More
11 Program to take input from HTML form and find biggest among 2 number in PHP
Program: <html> <body> <form action="" method="post"> First Value: <input type=...
Read More
10 Program to demonstrate Multi-Dimensional Array in PHP
Program: <?php $person = array( array(78,52,89), array(7,42,89), array(78,55,49) ); echo $person[0][1]; foreach( ...
Read More
4 Program to implement Toast in android studio
AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.an...
Read More
24 Program to print the number in words for example: 1234=> One Two Three Four in Python
Program: num = int(input("Enter any number:")) t = list() while num > 0: rem = num %10 if rem == 0: ...
Read More
23 Program to find the repeated items of a tuple using Python
Program: t = [int(x) for x in input("Enter any value:").split()] t = tuple(t) print("Repeated Values:") for i in range...
Read More
22 Program to create a tuple and find the minimum and maximum number from it using Python
Program: t = tuple() t = [int(x) for x in input("Enter any 5 value:").split() ] minimum = t[0] maximum = t[0] for i in ...
Read More
21 Program to select the even items of a list using Python
Program: l = list() l = [x for x in input("Enter any number of value: ").split()] length = len(l) print("Even items...
Read More
20 Program to find common items from two lists using Python
Program: l1 = list() l1 = [x for x in input("Enter any 5 value for l1: ").split()] l2 = list() l2 = [x for x in input(...
Read More
19 Program to reverse a list using Python
Program: l = list() l = [x for x in input("Enter any 5 value: ").split()] length = len(l) print("Reverse List:",...
Read More
18 Program to get the smallest number from a list using Python
Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] small = l[0] for i in l: if small ...
Read More
17 Program to get the largest number of a list using Python
Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] large = l[0] for i in l: if large ...
Read More
16 Program to multiples all the items in a list using Python
Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] multi = 1 for i in l: multi = multi *...
Read More
15 Program to sum all the items in a list using Python
Program: l = list() l = [int(x) for x in input("Enter any 5 value: ").split()] sum = 0 for i in l: sum = sum + i print(...
Read More
14 Program to print reverse right angle triangle using Python
Required Output: Program: star = int(input("Enter any number:")) star = star +2 for i in range(star,0,-2): while(i...
Read More
13 Program that takes a number and checks whether it is a Palindrome or not using python
Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0: rem = num % 10 rnum = (rnum *...
Read More
12 Program takes in a number and finds the sum of digits in a number using Python
Program: num = int(input("Enter any number:")) onum = num snum = 0 while num > 0: rem = num % 10 snum = snum +...
Read More
11 Program to reverse a given number using Python
Program: num = int(input("Enter any number:")) onum = num rnum = 0 while num > 0: rem = num % 10 rnum = (rnum *...
Read More
10 Program to calculate factorial of a number using python
Program: num = int(input("Enter any number:")) fact = 1 for i in range(0,num): fact = (fact * i) + fact print(fact) Ou...
Read More
9 Program to print Fibonacci Series using Python
Program: num = int(input("Enter any number:")) f0 = 0 f1 = 1 f2 = 1 for i in range(num): print(f0,end=" ") ...
Read More
8 Program to print all even numbers between 1 to 100 using while loop in Python
Program: i = 1 while i <= 100: if i %2 == 0 : print(i,end=" ") i+=1 Output:
Read More
7 Program to print Right Angle Triangle in Python
Required Output: Program: star = int(input("Enter any number:")) for i in range(1,star+1): while(i>0): ...
Read More
6 Program to Print Diamond Pattern in Python
Required Output: Program: star = int(input("Enter any number:")) space = star // 2 for i in range(1,star+1,2): f...
Read More
5 Program that takes the marks of 5 subjects and display the grades using Python
Program: m1,m2,m3,m4,m5 = input("Enter 5 Subject Marks").split(' ') m1 = int(m1) m2 = int(m2) m3 = int(m3) m4 =...
Read More
#9 Operators in Python | Python Tutorial
Hashtag: #PythonWithAtharva #LearnCodingWithAtharva
Read More
3 Program to place Name, Age and Mobile number centrally on the display screen using Absolute Layout in Android Studio.
AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.and...
Read More
#8 Input and Output in Python | Python Tutorial
Escape Sequence in Python: 1) Suppose I want to display the output of 2 variable side by side with separated by a comma. 2) Suppose I wan...
Read More
4 Program to find out absolute value of an input number in Python
Program: num = float(input("Enter any Number:") if num < 0: print("Number: ",-num) else: print("Numb...
Read More
3 Program to check if a Number is positive, negative or zero in Python
Program: num = int(input("Enter any Number:")) if num < 0: print("Number is Negative") elif num > 0: ...
Read More
2 Program to check year is Leap Year or not in Python
Program: num = int(input("Enter any year:")) if num % 4 == 0: print(num ,"Year is Leap Year") else: pri...
Read More
9 Execution and Conditional Operator in PHP
Program: <?php #Exceution Operator $output = `ls -l`; echo $output; #Displays long list of files from present direc...
Read More
8 Foreach loop in PHP
Program: <?php $arr = array(1,2,3,4,5); foreach ($arr as $value) { echo $value." "; } ?> Output:
Read More
2 Program to place Name, Age and Mobile number linearly (Vertical) on the display screen using Linear Layout in Android Studio.
AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.and...
Read More
1 Program to display student name and marks in Android Studio.
AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.an...
Read More
7 How to create Array in PHP
Program: <?php echo "Array Demo <Br>"; $names = array("Atharva","Coding",124); print_r($names...
Read More
6 PHP inside HTML
Program: <html> <body> <select> <?php for($i=0;$i<50;$i++) { ...
Read More
5 For Loop in PHP
Program: <?php for($i=5;$i<=10;$i++) { echo "$i "; } ?> Output:
Read More
4 Do While Loop in PHP
Program: <?php $i = 0; do{ echo "$i "; $i++; }while($i<5) ?> Output:
Read More
3 While Loop in PHP
Prorgam: <?php $i=0; while($i<5) { echo "$i "; $i++; } ?> Output:
Read More
2 Constant Variable in PHP
Program: <?php define('name','atharva'); echo name; ?> Output:
Read More
1 Variables in PHP
Program: <?php $a = 0; echo "Variable: $a Type: ".gettype($a)."<br/>"; settype($a,"string"...
Read More
1 Program to find square root of a number in Python
Program: number = int(input("Enter any number:")) sqrt = number ** 0.5 print(" Number: ",sqrt) Output:
Read More
#7 String Datatype in Python
“string” Data Type: Sequence of collection of character. The python string can be represented using: 1) Single Quote (‘...
Read More
#6 Datatypes in Python
Mutable and Immutable Object’s Mutable Object : The value of mutable object can be modified in place after it’s creation....
Read More
#5 Variables in Python
Variable naming rules: Variables names must start with a letter or an underscore, such as: _underscore underscore_ The remainder of...
Read More
#4 Flavor's and Version of Python
Python Flavor's: Cpython: Standard python interpreter implemented in C Language. Here python code internally converted into interme...
Read More
#3 Features and Derivation of Python
Python Derivation Python was derived and built in such a way that it has included most of the Programming language features. 1) Procedu...
Read More
#2 History Of Python
History Of Python: Python was developed by Guido Van Rossum in the late 1980s. Rossum published the first version of Python code (0.9.0...
Read More
#1 Introduction to Python Programming Language
What is Python? 1) Python is widely used high level Programming language for general purpose programming created by Guido Van Rossum and ...
Read More
Subscribe to:
Posts (Atom)