#include #include using namespace std ; main() { int count=0; int a[26]={}; // making empty array of 26 elements string s; getline(cin,s); int l=s.length(); for (int i=0;i=65 && s[i]=97 && s[i]
st=input("Enter the string:") lst=[] f=0 for i in range(26): lst.append(0) for i in range(len(st)): if st[i]==" ": continue lst[ord(st[i].upper())-65]+=1 for i in lst: if i==0: f=1 break if f==1: print("{} is not panagram".format(st)) else: print("{} is panagram".format(st)) #Sir can you check the logic right or wrong?
Sir , can you please clear one problem ? Everytime I sit for TCS , n the code section I get error "NosuchElementException" as I use Scanner for taking input. Am I going wrong somewhere ?
But sir what about blank space? Sir I do the program in python3 using list as you take flag[26]={} . But when run the code due to blank space between two word it's gives list index out of range. Can you please give its python logic
Please add interview experiences of LTI as well! We will be having them shortly
Excellent
Please make a video on L&T interviews.
Good❤
#include
#include
using namespace std ;
main()
{
int count=0;
int a[26]={}; // making empty array of 26 elements
string s;
getline(cin,s);
int l=s.length();
for (int i=0;i=65 && s[i]=97 && s[i]
st=input("Enter the string:")
lst=[]
f=0
for i in range(26):
lst.append(0)
for i in range(len(st)):
if st[i]==" ":
continue
lst[ord(st[i].upper())-65]+=1
for i in lst:
if i==0:
f=1
break
if f==1:
print("{} is not panagram".format(st))
else:
print("{} is panagram".format(st))
#Sir can you check the logic right or wrong?
Part 3 and 4 bhi share karo before digital exam...please sirr
It is from hexaware technologies,Tomorrow I have GET - circuit stream test... Time slotted at 10 AM, Can you send the some of the details of it??
Sir Can we change programming language after writing some code in one language to another language?
Tcs digital me... greedy, dp ya trees se v qstns aate hai kya..??
Can we import libraries in TCS DCA exams such as regex ,itertools Counter ,import math etc in python
TCS 2021 off campus drive registration is started or not?
Thank you sir
Sir which version of python is allowed in tcsninja and digital python 2 or python 3?
Sir, can u upload a video on Aptitude for TCS NINJA please 🙏
toupper(s[i]) just convert letter to uppercase
but we have to subtract 65 frm ascci value of
toupper(s[i])
how u get ascci value of each of s[i] ???
just type cast any character to int you will get Ascii value;
for ex;
String i = "Hello";
int d = (int)i.charAt(index);
Is python compiler is good for exam?
Can't we just count the unique different number of characters and if it's equal to 26 then it's a pangram else it isn't (27 including space)
yes this can be simply done by set
No,logic fails if it contains special characters
@@ravineshkumar5680 you can use isalpha() for that
Sir capgemini virtual interview konse platform Par hoga
Sir , can you please clear one problem ?
Everytime I sit for TCS , n the code section I get error "NosuchElementException" as I use Scanner for taking input.
Am I going wrong somewhere ?
Sir how to handle end of file error in python...
Even though whole code is right it's showing eof error at input() function
Sir does 2020 will get the chance in any further hiring?
Yes .. 2020 will get chance
@@OnlineStudy4u thanks for the information
Awesome 💞
Which year passout bro?
For this year do we need to go for test centers or can we take test in home
go to test centers
But sir what about blank space?
Sir I do the program in python3 using list as you take flag[26]={} . But when run the code due to blank space between two word it's gives list index out of range.
Can you please give its python logic
instead of using flag[26={},Use flag=[0]*26 It will work.[
Sir what about 2019 batch ???
We can write the exam. But TCS will not hire us. 😄 The TCS drive is exclusively for 2021 paasouts
Will tcs digital coding questions in the same level??
Yes
@@OnlineStudy4u is the python compiler good in the exam.
@@deepakavva317 they have very bad compiler of python.And supported for python 2.x
Kindly send me TCS digital registration link
Sir, can you provide this code in java