Sponsored Content
Top Forums Programming Always giving the answers as 1 Post 303036636 by wisecracker on Friday 5th of July 2019 12:40:26 PM
Old 07-05-2019
I am not quite sure what you are trying to do but if it is just summation you want try...
Code:
MyList = []
Number =  int(input("Please enter number:"))
for i in range(1, Number + 1):  
    value = int(input("Enter Numbers %d:" %i))
    MyList.append(value)

total = sum(MyList)

print("Sum of num:", total)

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I Need Some (help)answers Asap

can someone explain the meaning of the following shell commands: 1. who / wc -l 2. who / sort > user_names 3. cat students > new_students 4. current_day='date / cut -cl-3' i would also appreciated if you could tell me some things about the umask 1. what is a good umask value and why? 2.... (2 Replies)
Discussion started by: dakis
2 Replies

2. Shell Programming and Scripting

basic script for yes and no answers

What is the basic syntax for a script that says do you want to do this? y - execute this n - end not y or n - end and print this for example if I want to run this: "Do you want to start this process?" answer if y,Y, or yes then run the following script (do I put the script with... (10 Replies)
Discussion started by: llsmr777
10 Replies

3. Solaris

expecting answers for these questions?

hi all plese clarify me in the following area. 1. What is the default NFS version in solaris 5.10. If it is 3, then why it asks me to specify "-o vers=3" keyword while i am mounting a share from a RHEL 5.1 Server? 2. Can someone give the link to download packages for accessing "ntfs"... (4 Replies)
Discussion started by: kingston
4 Replies

4. UNIX for Dummies Questions & Answers

Question and answers

Hello All, I need to prepare for interview. Can any body help me with interview question and answers pls.. Regards, Sam (2 Replies)
Discussion started by: j_panky
2 Replies

5. Homework & Coursework Questions

Need answers for these shell programs.....

1. Write a shell script to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether... (1 Reply)
Discussion started by: sandeep148
1 Replies

6. Homework & Coursework Questions

Need answers for these shell programs.....

1. Write a shell script to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether... (2 Replies)
Discussion started by: sandeep148
2 Replies

7. UNIX for Dummies Questions & Answers

Need answers urgently!!

hello guys!! need 1 favour from u all.. Can u jst tell me the answers for these ques?? 1. ls - l _____ : command to return all files that end with single digit and those with TXT extension 2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
Discussion started by: Gan_7
1 Replies

8. UNIX for Beginners Questions & Answers

Answers for few objective questions.

Hi Unix geniuses, I need your help for the answers of few objective Q&A. i dont know if my answers are correct or not. So i really need your help to provide the answers which will help me in unix programming. (1 Reply)
Discussion started by: Vivekit82
1 Replies
colortest-python(1)						   User Commands					       colortest-python(1)

NAME
colortest-python - Display color test chart and convert between color values SYNOPSIS
colortest-python DESCRIPTION
Displays 256, 88 and 16 color tables depending on what the terminal supports. Also provides for conversion between 256 and 88 color values. The program automatically detects 8, 16, 88, 256 color capabilities (via ncurses) and displays the appropriate color charts. Program can display the colors as blocks or 2d cubes optionally with color values overlaid in int or hex values, it can show the full rgb text string and show the display with a vertical (default) or horizontal orientation. In addition to the color charts it can also convert between 256 and 88 color values. This can be useful when converting various terminals like between urxvt and xterm-256. The goal of this program was to provide the functionality of all the various Perl and sh scripts in one place with some bells and whistles. OPTIONS
-b, --block Display as block format (vs cube) [default]. -c, --cube-slice Display as cube slices (vs block). -e NUMBER, --88to256=NUMBER Convert (expand) 88 color value NUMBER to an 256 color value. -h, --help Display sort help. -n, --numbers Include color escape numbers on chart. -l, --rgb Long format. RGB values as text. -p, --padding Add extra padding (helps discern colors). -r NUMBER, --256to88=NUMBER Convert (reduce) 256 color value NUMBER to an 88 color value. -v, --vertical Display with vertical orientation [default]. --version Show program's version number and exit -x, --hex Include hex color numbers on chart. -z, --horizontal Display with horizontal orientation. ENVIRONMENT
None. FILES
None. SEE ALSO
colortest-8(1) colortest-16(1) colortest-16b(1) colortest-16b(1) AUTHORS
Program was written by Thomas John Eikenberry <jae@zhar.net> This manual page was written by Jari Aalto <jari.aalto@cante.net>. Released under license GNU GPL version 3 or (at your option) any later version. For more information about license, visit <http://www.gnu.org/copyleft/gpl.html>. colortest-python 2012-06-18 colortest-python(1)
All times are GMT -4. The time now is 08:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy