9.Python program to find Area of a circle
def findArea(r):
PI = 3.142
return PI * (r*r);
# Driver method
print(findArea(5))
@python_0
def findArea(r):
PI = 3.142
return PI * (r*r);
# Driver method
print(findArea(5))
@python_0
10 Python 3 code to find sum of elements in given array
def _sum(arr,n):
# return sum using sum
# inbuilt sum() function
return(sum(arr))
# driver function
arr=[]
# input values to list
arr = [12, 3, 4, 15]
# calculating length of array
n = len(arr)
ans = _sum(arr,n)
# display sum
print (\'Sum of the array is \',ans)
@python_0
def _sum(arr,n):
# return sum using sum
# inbuilt sum() function
return(sum(arr))
# driver function
arr=[]
# input values to list
arr = [12, 3, 4, 15]
# calculating length of array
n = len(arr)
ans = _sum(arr,n)
# display sum
print (\'Sum of the array is \',ans)
@python_0
11.Python program to print Even Numbers in a List
# list of numbers
list1 = [10, 21, 4, 45, 66, 93]
# iterating each number in list
for num in list1:
# checking condition
if num % 2 == 0:
print(num, end = " ")
@python_0
# list of numbers
list1 = [10, 21, 4, 45, 66, 93]
# iterating each number in list
for num in list1:
# checking condition
if num % 2 == 0:
print(num, end = " ")
@python_0
12.Python program to check if a string is palindrome or not
def isPalindrome(s):
rev = s[::-1]
# Checking if both string are equal or not
if (s == rev):
return True
return False
# Driver code
s = "malayalam"
ans = isPalindrome(s)
if ans == 1:
print("Yes")
else:
print("No")
@python_0
def isPalindrome(s):
rev = s[::-1]
# Checking if both string are equal or not
if (s == rev):
return True
return False
# Driver code
s = "malayalam"
ans = isPalindrome(s)
if ans == 1:
print("Yes")
else:
print("No")
@python_0
13 function to check if small string is there in big string
def check(string, sub_str):
if (string.find(sub_str) == -1):
print("NO")
else:
print("YES")
# driver code
string = "zeus is a programmer"
sub_str ="zeus"
check(string, sub_str)
@python_0
def check(string, sub_str):
if (string.find(sub_str) == -1):
print("NO")
else:
print("YES")
# driver code
string = "zeus is a programmer"
sub_str ="zeus"
check(string, sub_str)
@python_0
14.Function to find permutations of a given string
from itertools import permutations
def allPermutations(str):
# Get all permutations of string 'ABC'
permList = permutations(str)
# print all permutations
for perm in list(permList):
print (''.join(perm))
# Driver program
if name == "__main__":
str = 'ABC'
allPermutations(str)
@python_0
from itertools import permutations
def allPermutations(str):
# Get all permutations of string 'ABC'
permList = permutations(str)
# print all permutations
for perm in list(permList):
print (''.join(perm))
# Driver program
if name == "__main__":
str = 'ABC'
allPermutations(str)
@python_0
15. Python3 code to find largest prime factor of number
import math
def maxPrimeFactors (n):
maxPrime = -1
while n % 2 == 0:
maxPrime = 2
n >>= 1 # equivalent to n /= 2
for i in range(3, int(math.sqrt(n)) + 1, 2):
while n % i == 0:
maxPrime = i
n = n / i
if n > 2:
maxPrime = n
return int(maxPrime)
n = 15
print(maxPrimeFactors(n))
n = 25698751364526
print(maxPrimeFactors(n))
@python_0
import math
def maxPrimeFactors (n):
maxPrime = -1
while n % 2 == 0:
maxPrime = 2
n >>= 1 # equivalent to n /= 2
for i in range(3, int(math.sqrt(n)) + 1, 2):
while n % i == 0:
maxPrime = i
n = n / i
if n > 2:
maxPrime = n
return int(maxPrime)
n = 15
print(maxPrimeFactors(n))
n = 25698751364526
print(maxPrimeFactors(n))
@python_0
16.Python Counter| Find all duplicate characters in string
from collections import Counter
def find_dup_char(input):
WC = Counter(input)
j = -1
for i in WC.values():
j = j + 1
if( i > 1 ):
print WC.keys()[j],
if name == "__main__":
input = 'hellowelcome'
find_dup_char(input)
@python_0
from collections import Counter
def find_dup_char(input):
WC = Counter(input)
j = -1
for i in WC.values():
j = j + 1
if( i > 1 ):
print WC.keys()[j],
if name == "__main__":
input = 'hellowelcome'
find_dup_char(input)
@python_0
Forwarded from ENGINEERING [CSE/IT] NOTES/ BOOKS/ LECTURES
Please open Telegram to view this post
VIEW IN TELEGRAM
Learn python3 free
πππ
https://www.coursera.org/learn/python-basics
Regards
ππ
@python_0
@python_0
πππ
https://www.coursera.org/learn/python-basics
Regards
ππ
@python_0
@python_0
Coursera
Python Basics
Offered by University of Michigan. This course ... Enroll for free.
Forwarded from Kapil Mewada
Anonymous Poll
86%
Yes
14%
No
Forwarded from Kapil Mewada
TCS full information
πππ
β«οΈStep by Step process to Register
β«οΈPreparation tips and strategy for
TCS CODEVITA R-1
β«οΈTCS CODEVITA Last Year Coding Questions
β«οΈTCS CODEVITA Interview Experienc
β«οΈTechnical Interview Questions
β«οΈHR Interview Questions
ππ
http://codeofgeeks.com/tcs-codevita-archive
Regards
ππ
@codevita9
@codevita9
πππ
β«οΈStep by Step process to Register
β«οΈPreparation tips and strategy for
TCS CODEVITA R-1
β«οΈTCS CODEVITA Last Year Coding Questions
β«οΈTCS CODEVITA Interview Experienc
β«οΈTechnical Interview Questions
β«οΈHR Interview Questions
ππ
http://codeofgeeks.com/tcs-codevita-archive
Regards
ππ
@codevita9
@codevita9
Forwarded from Kapil Mewada
TEK Systems Updates
TEK Systems previously asked questions
13+ Solutions
πππ
https://bit.ly/2BjHFuj
.
TEK Systems previously asked questions
13+ Solutions
πππ
https://bit.ly/2BjHFuj
.
Realrecursive
Real Recusive | Archive
One stop archive for geeks where they can all required material they want.
TEK Systems Updates
TEK Systems previously asked questions and solutions download the PDF
ππ
https://realrecursive.com/downloads/
.
TEK Systems previously asked questions and solutions download the PDF
ππ
https://realrecursive.com/downloads/
.
Realrecursive
Real Recusive | Downloads
Download Study Materials for Free. Learn Hacking, Programming, IT & Software,and more - realrecursive.com
Crash course: Data analytics in Python using Pandas
Description: Let's get to grips with the Python Pandas library for data analytics / analysis
Link: https://www.udemy.com/course/python-analytics/?couponCode=KODEYCOUPON
Organizational Innovationβ’
Description: Lessons from Silicon Valley on how to operate like a Silicon Valley startup, no matter how big an organization.
Link: https://www.udemy.com/course/organizationalinnovation/
Success Crash Course: How to Become Successful
Description: Understand the psychology of success. Learn the principle of success. Implement this knowledge into your life and grow.
Link: https://www.udemy.com/course/psychology-of-success/
Mistakes we make about a mistake.
Description: Correct your mistakes, secure your future.
Link: https://www.udemy.com/course/mistakes-we-make-about-a-mistake/
TypeScript, Quick and Easy
Description: This is a practical course to learn TypeScript rapidly and deeply.
Link: https://www.udemy.com/course/typescript-quick-and-easy/?couponCode=9656C4B8D6EACC8D8F32
WiFi Hacking Cyber Security Guide
Description: Learn how to Hack and Secure any Wi-Fi network from scratch
Link: https://www.udemy.com/course/wifi-hacking-cyber-security-guide/?couponCode=WIFI-ETHICAL-HACK
Create an API with Python | Django | MySQL | REST Framework
Description: Build a CRUD API from scratch
Link: https://www.udemy.com/course/create-an-api-with-python-django-mysql-rest-framework/
Build Your First iOS App with Apple's Swift and Xcode
Description: Learn the basics of Swift and Xcode for app development quick and fast. For those with no programming experience!
Link: https://www.udemy.com/course/build-your-first-ios-app-with-apples-swift-and-xcode/
Get Hired: Bring Your Interview A-Game
Description: Being a skilled interviewer isn't just for a lucky few...Learn insider tips on interviewing to land the winning offer!
Link: https://www.udemy.com/course/bringyourinterviewagame/
Share and support
ππ
@python_0
@python_0
Description: Let's get to grips with the Python Pandas library for data analytics / analysis
Link: https://www.udemy.com/course/python-analytics/?couponCode=KODEYCOUPON
Organizational Innovationβ’
Description: Lessons from Silicon Valley on how to operate like a Silicon Valley startup, no matter how big an organization.
Link: https://www.udemy.com/course/organizationalinnovation/
Success Crash Course: How to Become Successful
Description: Understand the psychology of success. Learn the principle of success. Implement this knowledge into your life and grow.
Link: https://www.udemy.com/course/psychology-of-success/
Mistakes we make about a mistake.
Description: Correct your mistakes, secure your future.
Link: https://www.udemy.com/course/mistakes-we-make-about-a-mistake/
TypeScript, Quick and Easy
Description: This is a practical course to learn TypeScript rapidly and deeply.
Link: https://www.udemy.com/course/typescript-quick-and-easy/?couponCode=9656C4B8D6EACC8D8F32
WiFi Hacking Cyber Security Guide
Description: Learn how to Hack and Secure any Wi-Fi network from scratch
Link: https://www.udemy.com/course/wifi-hacking-cyber-security-guide/?couponCode=WIFI-ETHICAL-HACK
Create an API with Python | Django | MySQL | REST Framework
Description: Build a CRUD API from scratch
Link: https://www.udemy.com/course/create-an-api-with-python-django-mysql-rest-framework/
Build Your First iOS App with Apple's Swift and Xcode
Description: Learn the basics of Swift and Xcode for app development quick and fast. For those with no programming experience!
Link: https://www.udemy.com/course/build-your-first-ios-app-with-apples-swift-and-xcode/
Get Hired: Bring Your Interview A-Game
Description: Being a skilled interviewer isn't just for a lucky few...Learn insider tips on interviewing to land the winning offer!
Link: https://www.udemy.com/course/bringyourinterviewagame/
Share and support
ππ
@python_0
@python_0
Udemy
Crash course: Data analytics in Python using Pandas
Let's get to grips with the Python Pandas library for data analytics / analysis
Infosys InfyTQ Interview questions and a few tips on how to crack them
πππ
https://www.conduiraonline.com/index.php/detail/2330-infosys-infytq-interview-questions-tips-on-how-to-crack-them
πππ
https://www.conduiraonline.com/index.php/detail/2330-infosys-infytq-interview-questions-tips-on-how-to-crack-them
Conduiraonline
Infosys InfyTQ Interview Questions & Tips on how to crack them
InfyTQ, by Infosys, is a certified test. This certification gives you an additional benefit of being a part of Infosys' recruitment process and securing a job opportunity at Infosys. check this bl...
Daily jobs/ internships and Exam updates
Join us now for never miss any updates from any company
ππ
https://www.youtube.com/channel/UCmYO_4lgP8V5qRAunlc9wSg
Join us now for never miss any updates from any company
ππ
https://www.youtube.com/channel/UCmYO_4lgP8V5qRAunlc9wSg
YouTube
Kapil Mewada
Inspiring students to care about opportunities, Hii everyone this is Kapil Mewada, the main aim of this channel is to provide the necessary information to the freshers and college student about the placement and the job opportunity offers by companies