Skip to content

A collaboration of solving different logical questions using different languages

Notifications You must be signed in to change notification settings

permoK/code-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Questions Repository

Welcome to the Code Questions Repository! 🚀 This repository contains solutions to code questions in both Python and C programming languages. The questions are sourced from the PyNative website and are posted in the Tech News WhatsApp group.

Structure

Each friend has their own directory containing their question solutions. This makes it organized and easy to navigate through. Below is an overview of the repository structure:

Certainly! Here's a sample README.md file for your repository that covers the details you mentioned:

markdown

Code Questions Repository

Welcome to the Code Questions Repository! 🚀 This repository contains solutions to code questions in both Python and C programming languages. The questions are sourced from the PyNative website and are posted in the Tech News WhatsApp group.

Structure

Each friend has their own directory containing their question solutions. This makes it organized and easy to navigate through. Below is an overview of the repository structure:

📂 Code_Questions_Repo │ ├── 📂 Friend_1 │ ├── 📂 Question_1 │ ├── 📂 Question_2 │ └── ... │ ├── 📂 Friend_2 │ ├── 📂 Question_1 │ ├── 📂 Question_2 │ └── ... │ └── ...

  1. Navigate to the respective friend's directory and explore the question solutions.

Contributing

We welcome contributions from everyone! If you have new solutions or want to improve existing ones, feel free to submit a pull request. Please follow the contribution guidelines for smooth collaboration.

Credits

  • Original questions from PyNative
  • Inspiration from the Tech News WhatsApp group

License

This repository is licensed under the MIT License.

Let's have fun coding and learning together! 😄👩‍💻👨‍💻

code-quiz

A collaboration of solving different logical questions using different languages with the main of them being C and python

*01 duplicate encode

The goal of this exercise is to convert a string to a new string where each character in the new string is "(" if that character appears only once in the original string, or ")" if that character appears more than once in the original string. Ignore capitalization when determining if a character is a duplicate.

Exercise problems.

Exercise 1: Calculate the multiplication and sum of two numbers Given two integer numbers return their product only if the product is equal to or lower than 1000, else return their sum.

Exercise 2: Print the sum of the current number and the previous number Write a program to iterate the first 10 numbers, and in each iteration, print the sum of the current and previous number.

Exercise 3: Print characters from a string that are present at an even index number Write a program to accept a string from the user and display characters that are present at an even index number.

Exercise 4: Remove first n characters from a string Write a program to remove characters from a string starting from zero up to n and return a new string.

Exercise 5: Check if the first and last number of a list is the same Write a function to return True if the first and last number of a given list is same. If numbers are different then return False.

Exercise 6: Display numbers divisible by 5 from a list Iterate the given list of numbers and print only those numbers which are divisible by 5.

Exercise 7: Return the count of a given substring from a string Write a program to find how many times substring “Emma” appears in the given string.

Exercise 8: Print the following pattern 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

Exercise 9: Check Palindrome Number Write a program to check if the given number is a palindrome number. A palindrome number is a number that is same after reverse. For example 545, is the palindrome numbers.

Exercise 10: Create a new list from a two list using the following condition Create a new list from a two list using the following condition Given a two list of numbers, write a program to create a new list such that the new list should contain odd numbers from the first list and even numbers from the second list.

About

A collaboration of solving different logical questions using different languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published