This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_bill(items, prices, discounts): | |
new_i = [] | |
new_p = [] | |
total = 0 | |
""" | |
items1 = [list(map(int, x)) for x in items] | |
prices1 = [list(map(int, x)) for x in prices] | |
discounts1 = [list(map(int, x)) for x in discounts] | |
""" | |
prices1 = list(map(int, prices)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=71En_pl_Ozo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
void main() | |
{ | |
int arr[26] = {0}; // Alphabet Array to count no of occurence | |
char str[] = "ABCDEFGHIJKLMNOPQRSTuvwxYZ"; //Input String | |
int i = 10, count = 0, l = 0; | |
//iterating every member of the input string | |
for(i= 0; str[i] != '\0' ; i++) | |
{ | |
l = str[i]; // Getting the ascii values 'a' = 97 and 'A' = 65 |