40 questions
-2
votes
2
answers
1k
views
I need to check if a string is a pangram string or not is my code correct?
public static class Inova
{
public static bool IsPangram(string str)
{
int compteur = 26;
for (int i = 0; i <= str.Length; i++)
{
if (('A' <= str[i] ...
0
votes
1
answer
1k
views
Check whether a list of words make a Pangram
I need to create a 2D string array and input to hi, up to 10 words, than to check if those words are pangram or not.
The program needs to stop receiving words if the words are pangram.
for example:
...
0
votes
2
answers
480
views
Pangram detection
beginner here--
Given a string, my code must detect whether or not it is a pangram. Return True if it is, False if not.It should ignore numbers and punctuation.
When given "ABCD45EFGH,IJK,...
0
votes
1
answer
138
views
Why doesn't my Pangram solution output correctly?
The question is as follows:
A pangram is a string that contains every letter of the alphabet. Given a sentence determine whether it is a pangram in the English alphabet. Ignore case. Return either ...
1
vote
5
answers
3k
views
Pangram in C using functions
When I input The quick brown fox jumps over the lazy dog, the following program prints not a pangram. Yet, I expect s to be 26 and printf("pangram") to be executed. What am I doing wrong?
#...
-1
votes
1
answer
80
views
Checking a sentence if it is a pangram by using a Jframe
I would like to create a case where the user needs the enter a sentence.
The code should validate if the sentence is :
a pangram
not a complete pangram
not a pangram
In the text area: the system ...
0
votes
3
answers
1k
views
How to detect wether or not a string is a pangram and return true or false
A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence "The quick brown fox jumps over the lazy dog" is a pangram, because it uses ...
0
votes
3
answers
54
views
Correct way of removing the last object from an array within an If statement
I have written a script to check whether a sentence is a pangram or not.
I am trying to remove the last element in an array. In order to create a gramatically correct sentence e.g. 'X, Y and Z.' I ...
-1
votes
8
answers
371
views
Whats wrong with my python pangram function
Its a function that checks whether a string is a Pangram or not
so if str1 == 'the quick brown fox jumps over the lazy dog' the function will return True since the string contains every letter in the ...
2
votes
3
answers
2k
views
Using regular expression to check for pangram in a string error [duplicate]
Roy wanted to increase his typing speed for programming contests. His friend suggested that he type the sentence "The quick brown fox jumps over the lazy dog" repeatedly. This sentence is known as a ...
-1
votes
2
answers
304
views
Checking Pangram in Python
I am trying to use .pop to check the pangram and have the following code but get the error "'str' object has no attribute 'pop'". I am new to programming. Please help.
import string
def ispangram(...
0
votes
1
answer
93
views
pangram problem from exorcism.io, python track, why doesn't my solution work?
def is_pangram(sentence):
alf = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
sentence = sentence.lower()
for x in alf:
...
1
vote
1
answer
153
views
Errors in Python Pangram Checker on Exercism.io
I am trying to solve this problem on Exercism.io's Python track and am passing all tests except tests for mixed case and punctuation, only lower case, numbers, and underscores. There are 10 tests and ...
-4
votes
12
answers
13k
views
Writing a Python function to check whether a string is pangram or not
def pangram(s):
check=""
small=s.lower()
combine=small.replace(" ","")
for i in combine:
if i in check:
return False
else:
check+=i
return ...
1
vote
5
answers
1k
views
Pangram using hashset in java
i am trying to determine whether the string is pangram or not by using set in Java
I've tried the below code.Now the output is showing as not pangram but it should be a pangram. Pls tell me whats ...